Partially due to institutional experience and economies of scale (for certain capabilities). We probably still exceed what the next top 3 powers (China, Russia, India, BTW) are spending in PPP terms, so it shouldn't be that surprising.
> The Ukraine war is showing the superiority of decades old Western tech.
For every video of HIMARS blowing up a Russian ammo depot, there's a video of Ka-52 helicopters popping M2 Bradleys from 5+ km away.[1] M777s were lauded for their accuracy....until they broke. [2] Ukrainian brigades have been lavishly equipped with Western armored vehicles and they've bounced off a brick wall of positively-ancient minefields and artillery, very similar to the defense-in-depth that the Soviets used to defeat the Germans at Kursk ...in 1943.[3]
This conflict is so complex in terms of difficult-to-measure soft factors that are influencing the battlefield (training, maintenance, corruption, NATO ISR support, information operations/propaganda, etc.), that drawing conclusions about the merits of individual technical systems or especially the overall tech base of the two main powers (Russia vs "the West") as a whole is....unwise.
[1]https://www.thedrive.com/the-war-zone/ukraines-armor-appears...
[2]https://www.nytimes.com/2022/11/25/us/ukraine-artillery-brea...
[3]https://www.nytimes.com/2023/06/26/world/europe/ukraine-coun...