This doesn't matter for the majority of players but that's why high skilled CSGO and other shooters must still use LAN for high level play. There's no entirely defeating peeker's advantage and other artifacts from latency.
Valorant, league of legends, and CSGO have their own CDN to try to help with connections. Can't really comment on other game's netcodes because they vary so much. For example, BF1 devs removed lag compensation entirely. League has no lag compensation since it's not a shooter. CSGO lag compensates a fixed amount so consistent ping is more important than fixed ping.
Here's another surprise for you: although Fortnite and Valorant are on Unreal, they don't use the default multiplayer networking code. You can't create a reliable game with it.