But the American media plays a bizarrely outsize role in American elections, occupying the place of most countries’ national election commissions. Here, the media actually assembles the results from 50 states, tabulates them and declares a victor. And — we can’t really help ourselves — the media establishes the narrative to explain what happened.
This fact is poorly understood outside the USA, and sometimes even within it.
Also poorly understood, and interacting with the above, is that the USA does not have a directly elected President. but that's for another day.