An origin of the idea of soulmates is from Greek Mythology.

Humans had, supposedly, four arms, four legs and a head with two faces. They were extremely powerful and Zeus, the leader of all the Gods, feared them immensely.

He split them all in half, forcing them to spend the rest of their lives searching for their other half so they could be complete.