Listen, humanity once lived in the Stone Age, and we didn't go to the Bronze Age because we lacked stones. We did it because we found something better. Eventually we're going to go to different energies, but not tomorrow.
In fact, predictions are that we'll still need a lot of oil for at least two generations, so let's not forget that. In fact, oil is very valuable, and if we want to maximize our income as a country we have to invest where we can produce things that are very valuable. For the moment, that's oil. Eventually, everyone will probably drive electric cars, but not tomorrow morning, and it's going to take a long while.