Can someone explain why we spent 230 million on this stupid pier that got blown up right away??

www.washingtonpost.com/national-security/2024/06/06/gaza-floating-pier-repair-cost/

I don't understand why we are spending money on humanitarian aid like this. What are we getting out of it? Why do we need to just burn money like this? If anything it's just embarrassing.

And no I'm not taking a positive stand on Israli military aid either (neutral opinion in this post).