It's called capital flight and it's a feature, not a bug, of socialism.

Related.