Under the Copyright Act, the employer is generally the first owner of copyright in work an employee makes in the course of employment, absent an agreement otherwise. This default does not extend to independent contractors, who normally retain copyright unless they assign it in writing.
Why it matters: companies routinely discover during due diligence that a freelancer, not the company, owns core code or design assets.