Profits are so high because competition to buy limited suppies of oil and gas are so high. The huge profits are not made from us.
When Shell, Esso, BP actually get the gas/oil out of the ground. Some is sold on long term contracts, but a lot is then effectively sold by auction to the highest bidder.
For many years there was a glut of oil and gas. Supply exceeded demand so prices stayed low. In particular, Russia grew its energy industry, and built huge pipelines to supply, mainly Western Europe, with gas to fuel the move from polluting coal fired power stations to less polluting has-fired power stations.
Following COVID as countries world wide cranked up their industries and reactivated their economies demand began to exceed supply.
Then we had the ongoing Ukraine crisis. sanctions against Russia included sanctions against using Russian gas, so countries like Germany, heavily dependent on Russian gas has had to buy huge quantities on the open market, at the same time as the reduction in available Russian gas has reduced the amount available - then, of course Russia has been using gas as a weapon of economic war. So customers bid each other up to get the scarce supply of energy they needed and the profits of those supplying it rocketted as well. This explains why the energy companies have made such large profits.
There is a quite seperate question about what should happen to these huge windfall profits. I am enough of an economist to know that cross subsidising businesses in the same company is bad business pactice so using the profits from selling the raw product to final users is not a good idea. Because not all domestic energy suppliers are enrgy producers and it would mean, for example, that Shell could halve the price their customers paid, while Octopus couldn't.
However I do support windfall taxes on windfall gains and I think this is the best way to treat these huge profits.