Supply, demand, subsidies and political stability of the country that produces it.
In short: oil prices are affected by many factors.
Isn't that the case for everything, including green energy tech?
I think the distinction is that many people are familiar with green energy being subsidised and surprised that oil & gas (often large, established, wealthy, and profitable companies) are too (at least in terms of tax breaks).