What is a Jack and Jill Bathroom?

A jack and jill bathroom, according to real estate agents, is a bathroom that has two doors and each lead to a different bedroom. They do this to save space and money.