What I like about his decision is that he did it without participating in Wimbledon or another big tournament. The reason is that this is really his character. He doesn't want to take away the stage from others for no reason. What if he participates in Wimbledon once more, gets beaten in the 3rd round and the whole tournament is about his goodbye instead of the players who actually should get the attention for their achievements during that tournament?
That is why I think it is a brilliant decision to say goodbye at the Laver Cup. Roger Federer is one of the hosts, there are no points for the ATP list and it is the perfect setup to allow for fans to celebrate his goodbye with him. Even if Roger loses early during the cup, it doesn't matter that much. Chapeau for that decision and to not just keep going and going to then use Wimbledon as final stage.
I agree, Federer acted very differently from, for example, Serena, who decided to say goodbye to the audience at the GS tournament in America.
In this way, Serena drew all the attention of the media and the audience to herself, although it was clear that she has a minor chance to win the tournament and that there are currently better tennis players than her.
I am sorry that for the last year Federer was injured and did not play in tournaments, and that we could not enjoy watching him on the tennis court.
The great tennis player and great gentleman is leaving.