By the sounds of things this is only if Apple provide the phone to the filmmakers as part of a promotional consideration. From the perspective of cultivating an image around their brand this makes sense to build this sort of clause into any contract
For some reason this now really makes me hope for a James bond-esque movie where the villain specifically uses only Apple products for their nefarious schemes and is defeated by a hero wielding a pinephone and a linux computer or something.