For at least 500 years a lavatory was a room for
washing, a basin, a bath, or a laundry.
After about 1850 (OED) lavatory came to mean also a receptacle into which a person can urinate or defacate. In the sanitaryware business today, a lavatory is a wash-basin; a bowl for excretion is a closet; see euphemisms.