Manufacturers will tell you they code everything together like that, to prevent theft.
In reality they do this, because.
1. They dont really want you to be able to get a used part from a breakers, and install it yourself. (Or installed at all, they will usually actively refuse, or even be unable to reset a module and code it to your car).
2. They ensure, that only they can install it, so you might not even be able to have some independent garage do it for you, as they have no equipment to do the coding, even of a new part.
So It's more of a "insurance" that they will be the ones servicing their car, rather than it being theft deterrent.