Socialism in popular consciousness is not always seen as the transitory phase towards communism. Sometimes it is conflated with the existence of a welfare state of some variety. I.e. when the government does stuff.
The socialism in Indian constitution comes mainly from how Nehru and his peers understood it. He was educated in England and hung out with utopian Fabian socialists.