Prepay room deposit before acceptance to school

BEFORE acceptance, though?? How on earth is it okay to take a non-refundable deposit if the student might not even be accepted?!