The eggs are ingested with our food. If the terrain is conducive they will multiply like crazy.
The larger worms do not float. That is why it is important to "stir" through the stool to see what has sunk to the bottom. Otherwise you will never know what you are killing while on a deworming program.