Hi Jan,
the fuse protects the battery, the wires, the inverter, and anything else connected. Depending on how it is sized, the protection can be against short circuit, fire, electrocution (not relevant here), overload, etc.
So each battery should have a fuse. They should be the same because of...