it's the desperate attempt of Israel to scare its neighbors into subedience. it knows its time is running out, because its strongest ally, the US, is leaving it. Israel has always been a military outpost of the US in the middle east to scare the oil-producing countries in the arab world towards selling its huge oil reserves to the US for cheap.
and renewable energy makes oil unnecessary - economically disadvantageous even! so there's no reason why the US would continue to give massive arms to Israel, and Israel knows this because they're not stupid. So they're like a dying star, at the end of its lifetime, before it burns out it lashes out in a rampaging way to its neighbors.