Expenses for Shared Danger
From Halachipedia
If a community faces a threat, each of the communal members is obligated to work together to save the whole.
When a ship is sinking, the passengers have to throw their luggage off to balance the boat. When a caravan is attacked by raiders, all the members of the community have to join