As the FAQ says, they charge for office space, food, resources, guest speakers, etc.
To a certain extent it helps companies understand the value of their cash. Rent and benefits are costs that (almost) all businesses bear. $50,000 is a lot of money and some founders burn through it too quickly. Mentally, it's a lot different than YC's $15,000.