Federer ending was defined by injury, not ageing like Nadal. He had a timely send-off at Wimbledon champions parade and Lavers cup surrounded by contemporaries as he wanted.
OTOH Nadal has been in the wilderness for > 2 years now, continually getting beat by low rank players. And yet he can't...