Why did the ideas of liberalism and nationalism go hand-in-hand during the early nineteenth century?

Verified Answer :

There were so many monarchs and people didn't want that. They moved to different places, like the colonies.