The point is surely to get another chance to grill the immigrant and potentially bar them entry. Other countries don’t always do this: Canada for example has inland changes of status and I believe renewals.
For many visas, people are expected to maintain a home that they intend to return to in their country of origin. Forcing people to leave every once in a while makes this more likely (at least in theory.)
Lack of real domestic enforcement would be an obvious one, so everything gets pushed to the border entry points.
Wait, what’s getting enforced here, anyway? They are getting a new visa, no? I don’t believe this rationale at all.
However, the in-country processing takes 6 months while the flagpole option (If you’re eligible) takes 15 minutes.
Except you had zero paperwork to show to an employer and they had no way to verify themselves. Even if an employer understood the process and accepted some proof that you submitted an application, they would have no idea if you were rejected and became out-of-status.
Most visas are for temporary guests: obtaining a visa doesn't normally give someone the right to permanently reside, and most don't permit their holders to work.