Is it? There's no upfront pricing in the taxi industry. There is a set fare rate, but the fare is dependent on external conditions.
For example: https://www.jfkairport.com/to-from-airport/taxi-car-and-van-...
> Taxis at JFK Airport charge a flat fare of $52 for trips between the airport and Manhattan. Taxis impose a $4.50 surcharge during peak hours (4-8 p.m. weekdays, excluding holidays), for a fare of $56.50.