If you give the colonize order, and the ship is currently above a planet, it will automatically pick up colonists if it is empty.
If the "move and colonize" order is given while the ship is not over a planet, it cannot pick up any colonists, and so the ship lands to create a ghost town

.