Just like the US isn't a capitalist country because they don't have a private military. If all you see is black and white, you'll miss all the good stuff in between.
Military? not socialism. Neither are police or fire departments. so "but military" doesn't carry any real point.
And those countries? still aren't socialists countries. The US not having "private military" doesn't change that.
This isn't "black and white". This is "socialism is failure based on 100+ years of historical evidence". This is logic and evidence. As I said, those are capitalist countries with strong welfare policies. This is also basic definition of socialism which isn't "the government does stuff".