> Food production is a class case where once productivity is high enough you simply get fewer farmers.
Yes, but.
There are more jobs in other fields that are adjacent to food production, particularly in distribution. Middle class does not existed and retail workers are now a large percentage of workers in most parts of the world.
Sure, but when farmers where 90% of the labor force many of the remaining 10% also related to food distribution and production, a village blacksmith was mostly in support of farming, salt production/transport for food storage, etc.
Food is just a smaller percentage of the economy overall.