What and why were those 14,000 non-military American idiots doing in Afghanistan in the first place?
Were they taking classes to learn the language or Sharia law? Was that the cheapest place they could afford to take a vacation or spend time at their timeshare?

You have to read the article and pay particular attention to the statuses of the groups of people.
The headline ambiguously states: "Joe Biden Abandoned THOUSANDS of Americans and as many as 14,000 in Afghanistan When US Fled Country."
What it MEANS: Thousands of Americans were left, and "as many as 14,000 U.S. legal permanent residents." That's 14K Green Card holders -- foreign nationals who have legal resident status in the US. They are not US citizens, therefore not Americans.
They could have been from any country, and I'd bet the majority were Afghanistan citizens. The US routinely hires foreigners to perform all manner of jobs: interpreters, drivers (most Arab countries forbid women from driving), laborers, construction projects, etc. They know the language and customs, and are therefore easier to put to work immediately.
In Saudi Arabia, our hotel was staffed almost completely with Filipinos. They did all the main functions: laundry, phone operator, housekeeping, grounds keeping, and so on. They could move to Riyadh for a year or more and make more than they could in more than 5 years at home. They saved and sent money back home for their families. Most support jobs for American military missions pay way more than almost any other job in the area.