IMO:
Not profit of the “self-service” repairs, nor the improvement to the bottom line when they refurbish their own devices.
Not some future goal of selling people the parts and/or tools.
Not the goal of being ecologically sustainable (though IMO they do very well at this).
I think they are working very hard to steer the Right to Repair ship so that it avoids successfully docking.
If Right to Repair gets everything that it could in the interests of the public, Apple will lose a lot of things. They will lose exclusivity contracts that lock in the manufacturers (it will be almost impossible to stop 3rd party duplicates of parts). They will lose a portion of the income from users who would would repair instead of upgrading. They will lose the illusion of security that they enjoy currently (unrestricted repair communities uncover every tiny detail, especially those ones that are security holes). They will lose the ability to lock people in to the Apple cloud (Jailbreaking will be inevitably easier). And they might even lose the pristine brand image they have built.
If Apple continued on the path of unrepairable iPhones, at some point they would be one of the examples that got Right to Repair signed in to law. However, they might be banking on the idea of saying “we’re making steps” for long enough that legislators will have space to stand down and the public will lose momentum.
Then they can go full-throttle on control.