Why do bagels have holes in the middle?

They have holes because if they didn't they would basically be bread.