There are 10x more physicians in the US than there are FAANG developers in the US though.
If you want to compare FAANG engineers to doctors the most accurate comparison is to the top 10%.
Those developers are almost all concentrated in extremely high cost of living cities as well.
Physicians also get special loan programs, better insurance rates etc…