I'm spitballing here, but I feel the common element is that the bridge violates a part of nature - the river - which still has to receive its due. Call it an early reaction to globalization. Villagers were acutely aware of how bridges and roads utterly changed the way people related to one another, running roughshod over old balances established by natural boundaries separating communities from each other. Now kings' laws, raiders, and their dear neighbours could reach them easily. So they get to cheat nature by not falling in the river, but pay a toll - often in blood - to the god for the privilege.