When Emma and Hook are transported to the past they say something to the effect of that the portal opened to the where and when Emma wanted to go. So I’d like to point out that the first person Emma comes across isn’t her parents its Regina.
Emma, wake up already, all roads lead to Regina
EMMA WE NAMED YOUR LITTLE BROTHER AFTER YOU DEAD EX BOYFRIEND
LOVE YOU SWEETIE