“Just as He had called, and they would not listen, so when they called, I would not listen,” says the Lord of Hosts.”
Zechariah 7:13 HCSB
https://www.bible.com/72/zec.7.13.hcsb
The Lord is really not a lot different from us in this way. If we ask someone to do something and they don’t, we are not inclined to do something for them when they ask us. But all too often we want the Lord to do things for us, to give us nice things and cure us, etc, but we don’t want to follow after Him or His commands. We want to be greedy and only think of ourselves. How can we not be surprised when He doesn’t answer us in a favorable way?