It’s a meaningless comparison, the median Swedish/Norwegian citizen is far more educated, wealthy, and capable of producing software than the median Chinese citizen.
China’s per capita software production is dragged down by its massive rural population, many of whom have never even owned a computer other than a smartphone. If you don’t account for that, then obviously wealthier/more urbanized countries will have higher per capita production.