Do you think God is always the answer?
The reason may be the wrong motive of our prayers.
Indeed, the motive of our petitions can be connected not with what God likes, not for the benefit of others, not even for the benefit of ourselves. God may not respond to such prayers. And it's even better than if He answered.