God wants us to be obedient. When we ask for things that are going to steer us away from him or down a bad path, he will say no. In time we learn that everything will happen as it is supposed to happen and if we just have faith, follow God’s words, we will get what we need. Not necessarily what we want but our needs will be met.