All visas work this way afaik, at least in the few places I’ve traveled where I’ve needed a visa; notably Africa.
I met a Italian man at immigration control in Ethiopia, at the Addis Ababa airport, he had been traveling Africa and this was his third attempt to enter Ethiopia. The first two attempts were via land borders with Kenya and he had been turned around both times, despite having a visa, because border control felt it would be too dangerous for a white man to travel through southern Ethiopia at the time. So he had to travel to Nairobi and get a flight; he was admitted this time, but he had to pay for another visa at the airport. Unclear why? He wasn’t best pleased about the whole thing.
I met a Italian man at immigration control in Ethiopia, at the Addis Ababa airport, he had been traveling Africa and this was his third attempt to enter Ethiopia. The first two attempts were via land borders with Kenya and he had been turned around both times, despite having a visa, because border control felt it would be too dangerous for a white man to travel through southern Ethiopia at the time. So he had to travel to Nairobi and get a flight; he was admitted this time, but he had to pay for another visa at the airport. Unclear why? He wasn’t best pleased about the whole thing.