It makes sense not to invest a lot of money into fossile infrastructure when you plan to be fossile free in about twenty years.
Investments in fossil fuel infrastructure still happen, too, in the form of LNG terminals.
Fracking is only profitable when oil is $120 a barrel or more.