Even if we didn't have capitalism, people would still need energy, for everything. It's unfortunate that fossil fuels were the easiest thing to use to generate energy over the last couple of centuries, and that it continues today. Maybe capitalism makes it easy for fossil fuels to remain entrenched, but I doubt any other kind of system would make fossil fuels less pervasive if it were the dominant energy source for over a century.