In the days before disposable nappies they were washed and hung out to dry in the fresh air.
This is a mock up of how I woukd use my washing line if I dared to.
This was not an uncommon site in my neighborhood. If you were so inclined you could determine where the bed wetters lived. Some of them may have been your friends. If mom was kind this laundry would have been hidden in the basement to dry. Could also determine which girls wore the nicest panties.lol