A factor not mentioned so far is "passenger appeal". Something new and shiney is going to appeal more than some dated bit of functional kit.
That is why airlines install new interiors on older airframes. Passengers get very little opportunities to see the exterior of the aircraft but see the interior the whole time they are in flight. Up-grading an interior is much less expensive than a new airframe.