Huh? Instead of charging you the cost of a repair, for that new unit, they just did a swap for you free of charge?
Vehicle breaks, the part or component that fixes it is unavailable/backordered/allocated for months+.
Manufacturers will offer to buy back the vehicle, at original sale price, rather than force you to wait (and relieving them from having to provide a loaner/rental).