Why don’t babies sleep through the night?

Everyone around us tells us that our babies should be sleeping through the night so why don’t they?