Why do some countries win most of the Olympic medals?

Certain countries consistently take the lion’s share of medals at the Olympics but it’s got little to do with national character and a lot to do with national wealth and political commitment

Why do some countries win most of the Olympic medals?