Because they are both direct maternal line descendants of https://www.wikitree.com/wiki/Habsburg-44
https://allthatsinteresting.com/habsburg-jaw
Both Hannover-19 and Romanov-29 have https://www.wikitree.com/wiki/Habsburg-44 as a shared maternal line ancestor.