It’s true that Denmark doesn’t at all fit the classic definition of socialism, which involves government ownership of the means of production. It is, instead, social-democratic: a market economy where the downsides of capitalism are mitigated by government action, including a very strong social safety net.