Baths post-partum?

Are baths okay post-partum? The nurses at my hospital and my obgyn said that baths cause infections of the cervix that can go up to the uterus- but then what’s the point of a sitz bath? I’m extremely confused- are baths safe?