Explain what happened during this science experiment?

Why do you think the egg floated in salt water but not in plain water?

IMG_0287