That is not how things work in there. When the controller is made it is calibrated with the sticks that are in there. When you replace a stick, it is not the exact same, even though it is still a good stick. Due to the mechanical and electrical tolerances between those things it is very rare to get one that is going to be the exact same as the original one. They are all just a little bit different, and the controllers are that picky now that if it is even just a little bit different, you get drift.
Since none of these billion dollar companies have anyone smart enough to put a recalibrate option either built into the controller or their respective dashboards, and they could becasue Nintendo did it decades ago, so now you get to deal with stick drift in any number of creative ways yourself, and none of them involves replacing some component in there. The option they want you to use to 'fix' it is buying a new controller, cause that's a sustainable solution, to their profit margins.