In cinema it works the same as in software engineering. There is an exception to normal copyright law where works made in the course of employment are treated as if the author is the employer rather than the actual author of the work. Its known in copyright law as a "work for hire" https://en.wikipedia.org/wiki/Work_for_hire
> In the United States, United Kingdom, and several other jurisdictions, if a work is created by an employee as part of their job duties, the employer is considered the legal author or first owner of copyright.
> It is an exception to the general rule that the person who actually creates a work is the legally-recognized author of that work.