Why is it said that companies are having a separate legal entity?

A company has separate legal entity as it carries on business in its own name. It can buy and
sell assets in its own name. It can also enter into contract with outsiders in its own name. The company is separate from its members.