There are too many connections as to believe that this is just passive support. Hamas knows it gets support from Israel and both sites benefit from it. Hamas itself is a deeply corrupt and downright evil organization, which is hated in Gaza for torture, rape and destroying public services. They need the big enemy Israel to justify them being in charge.
Israel or better Netanyahu and his fellow fascists need Hamas to stop peace talks with the Palastinians. If there is a genuine peace in the region, he would almost certainly loose elections. Kind of a similar situation to Hamas really.
A lot of it, is due to having waste products from refining crude oil, which could be turned into something usefull. So when you transition away from combustion engine cars, you increase the costs of other oil based products.