Sometimes to avoid costlier mechanical work like changing O2 sensors, where often cars still give a check-engine-light if you use an aftermarket one (dunno why the aftermarket ones are so poor that they cause emissions problems or if the car’s computer was deliberately/unintentionally so sensitive to force people onto OEM parts).