I like to think if I ABSOLUTELY had to give an in-universe reason, it’s down to the fact that Leia is Force-sensitive and can remember the strong emotions her mother experienced during childbirth etc. It’s a flimsy excuse, but no weirder than that Newtype stuff I love in Mobile Suit Gundam.
Out-of-universe has already been covered, lazy scriptwriting.