Airlines overbook almost every flight. That means if you're not in that line, you have a good chance of getting booted off the flight. It has happened to me a couple times.
They normally give you a voucher to compensate you for the trouble that can be used on a future flight. They will typically try to rebook you (at no cost) the same day if they can arrange it.