The first big investments in petroleum were for lighting via relatively clean-burning kerosene. Petroleum as a fuel came later, when they had a lot kerosene byproduct lying around. There's a obvious problem with solar as a lighting solution: you also need good batteries.