Looking at screen repairs for Samsung Galaxy phones the same security issues arise and there are complaints about Samsung blocking third party repairs due to security concerns.
So are both Apple and Samsung just being greedy or is there more to the issue at hand? I’m inclined to believe a company unless they’ve demonstrated that I cannot trust them.
This tells you nothing. They each have the same incentives. They want you to pay a premium to the manufacturer for repairs, because they're the manufacturer, and because that causes more devices to be uneconomical to repair and so more people have to buy new ones.
This is their stated justification, but it doesn't hold water. The device could refuse to accept a part if the part is from a device that has been reported stolen but they have it refusing to accept a part from a device that hasn't been stolen.