They just do the accounting in a specific way to reduce taxes. It's on such a scale that it has its own name: Hollywood accounting.
https://en.wikipedia.org/wiki/Hollywood_accounting