It cannot by homogeneity by itself. Poland, my home country, is homogeneous, but in a shitty way.
My experience is not proof of anything, I get that. But I've worked closely with both danish and polish people and there's something to be said about a certain type of "danishness". I can't really articulate it, however it's the largest complain I hear. I would compare it to being in a cult (having never been in a cult though). Personally I find it very weird.
It's culture.
Scandinavian cultures consistently rank the best.