Covered in my comment above: The more primary drive is that those are high calorie foods. A drive to consume more high calorie foods is beneficial in times of food scarcity, like the past.
It does some decimation, but not a full genocide.
Antibiotics are a far more powerful and faster modulator of gut biome, therefore if the above was true we’d see similar effects occurring more rapidly with antibiotics than diet.