I don't know what is the primary cause of disparities but i wouldn't assume it's all socioeconomics without evidence.
Maybe different groups are valuing things differently? For example, an Indian may try to migrate to US using PHD as a gateway. So they may be more willing to sacrifice and work hard. Or maybe for some groups PHD (or education in general) brings more prestige compared to others.