Because oil isn’t used to create electricity.
If you own the land to pump oil from under it, might as well put windmills on top of it and branch out to the electricity market too.
You never heard of oil fired boilers to heat water to make steam to drive turbine generators?