I get Lebron played the least amount of games of anyone making one of the teams, but it isn't like the All NBA Teams aren't filled with players missing a ton of games.
Kawhi missed 20 and made the 1st Team (72% of team games played)
Embiid missed 21
Butler missed 20
George missed 18
Irving missed 18
Beal missed 12
Giannis missed 11
Obviously James missing 27 led the way, but when so many players missed so many games, it almost feels like they just ignored the games missed and looked at stats, value, etc. The Lakers were 30-15 in Lebron's 45 starts many of which were without Davis, and they were 27-13 before James got hurt. He still basically averaged 25/8/8 and had his most efficient shooting season in LA (TS% 60.2) and that includes the game he got injured in and the 4 at the end of the year (bringing down his stats across the board).