How often do universities reject you because they have no more places?

Someone in my year applied for English and philosophy at the University of Edinburgh, which is also my first choice. They got rejected because there was not enough space in the course. Does it happen very often? Does Edinburgh in specific do it often?