Hamas is the second richest terror organisation. Funding from Iran but they also grift 13% of all aid money going into Gaza via charges for currency conversion. “Not for resale” aid food products are routinely sold for profit in Gaza.
Hamas routinely chooses military spending over social spending. It’s always been their way.