The numbers the article quotes are not the current US dollar GDP, but PPP (i.e. GDP adjusted to local prices) per capita. The 2021 current US dollar GDP numbers are rather far appart:
UK $47,334.36
Poland $17,840.92
Romania $14,861.91
Hungary $18,772.67