There's no need. In Japan, one must fully wash oneself before entering the bath; if you had diarrhea, say, or some other pressing need to void, it would come out before you got into the bath itself.
In what way would this be an environmental win, then? I went to one onsen and between the showering before and after, I’m pretty sure I used more water and energy than showering back at the hotel.