Every ticket in Freshdesk must have a contact. Also, only the contact can be associated with a company. In some cases, the agent could manually associate the contact with the company or you could set up a Domain for the company and all the contacts that raise tickets from that domain would be associated to that company automatically.