Sure they can, but reducing the geographic spread would reduce the chances of those randomly occurring variants spreading quickly around the world. I would expect other countries to require testing of international flights for the same reasons.
The US is performing badly when it comes to controlling the virus, but it could still get significantly worse.
Adding this rule but allowing people to run maskless because "muh rights" is not going to accomplish anything.