Those two seem like they knew each other in a past life.
Tips
culture
上辈子 reflects the Buddhist concept of reincarnation, widely woven into Chinese folk belief. It is commonly used in everyday speech to explain remarkable fate or relationships, e.g. '上辈子的缘分' (a bond from a past life).
usage
上辈子 can also mean 'ancestors' or 'past generations' in non-spiritual contexts, though the reincarnation sense is more common in modern usage.