The NBA doesn't shutdown its season to participate in the Olympics. Soccer is for under-23, Messi et al don't compete for gold medals. A lot of NBA players don't attend due to their contract status (like Andrew Wiggins for example). So it's not the same comparison.