Merchants in Gaza have to pay Israeli border authorities to receive a truck full of aid and of course, they then have to charge the people in Gaza to recover that money for the next truck.
It isn't Hamas who profiteers from selling the food.
Israel has successfully managed to turn the crimes of genocide and forced starvation into a profitable business.