Also, even if the magazine is out, there is still one live in the chamber and can still hurt someone.
I came to the comments to say this exact thing. This is actually a leading cause of negligent discharge incidents. People eject the magazine and assume the gun is unloaded, completely forgetting about the round in the chamber. There’s a reason soldiers are trained to actually look into the chamber.