Eggnog descends from British possets, warm milk and egg drinks spiked with wine or ale. In the American colonies, rum was cheaper and took over.
Nog may come from an old word for strong ale.