I'd really like to know which products that manufacturing in Denmark produces. Ozempic is a massive financial success, so maybe that is a large part of it? The lesson from Ozempic would be "Just have a huge hit come out of your R&D department", I guess...
...and be a relatively small country.
Novo Nordisk's sales numbers of 300bln DKK (~$46bln) amount to around 10% of Denmark's GDP.