That word ‘investment’ does not mean what Shell and BP executives and shareholders think it means.
We know this sort of investment involves risk and some winning bets and some losing bets. Big Pharma, for instance, shows some understanding of this. Big Oil largely does not - they only ‘invest’ in sure bets.
But I do agree with you and also wish they had spent that money that way.