You mean if the govt could somehow assess quality? That would be nice if you have a good idea how to do that. But companies have two priorities: one is a high skill level and the other is lower pay.
If we simply removed country caps from the current system then it would be dominated by certain countries with the highest pay difference. The smartest scientist in Germany would be waiting in line behind hundreds of thousands of far-less-skilled programmers from developing countries willing to work for at-or-below market rates (in a hot market where salaries would otherwise be rising faster).