Healthy body, healthy mind
In the 20th century, with the arrival of mains drainage and scientific progress, in particular the work of Pasteur on germs, the private bath and the shower (invented in the late 19th century as a faster, cheaper means of washing soldiers and prisoners) became standard.
Apartments in rental blocks were gradually converted to accommodate hole-in-the-ground toilets, showers and bathtubs. The bathroom or shower room became a place of private comfort and convenience.