assalamualaikum,
Allah created everything on this earth for man,He told us to look and see his creation in this world for us to ponder on His greatness. I may be mistaken,but I've read somewhere that the carcass of animals millions of years ago were compressed underground for hundred of millions of years ,and due to the pressure exerted,oil was created. Oil for man to use. Forgive me if my explanation are flawed, but the point I'm trying to make is that even dinosaurs that were created before us were created because of man. If you think about it, Allah has created this earth with man in His knowledge*. Subhanallah, but there are still people who think that that God don't exist. So look at his creation and be amazed at Allah's swt power and greatness.