How does a Govt, company enjoy separate legal entity apart from the Govt.?

By enjoying independence in its functioning i.e., buying and selling of assets in its own name.