Two issues. The batteries should be in a sealed compartment which is vented
overboard. During
charging they will normally generate hydrogen gas, which can be explosive. Or hydrogen sulphide, which can be toxic and corrosive. And if any seawater (which is supposed to go into the bilge) gets into the batteries? They'll generate chlorine gas. Also, a sealed box helps contain the acid splatter if a
battery is overcharged and explodes. (Something like 10,000 people in the US alone go to an ER with eye injuries after their car batteries explode during jump starting attempts, so yes, this happens.)
Second issue is just that water and batteries don't mix. If nothing else, you want to make sure that if the bladder fails, that water can't ruin your batteries. Fresh water would just dilute the electrolyte and ruin them "gently" but still ruin them. And bladders which are not properly secured and anti-chafe padded, do eventually fail.
It sounds like a convenient place to stow all the heavy things, but some more
work on "do it right" is in order. Both the bladder and the batteries should also be secured against roll-over. It is not hard to broach a
boat, and at that point anything heavy and unsecured becomes literally a loose cannon.