Giant panda’s ancestor was a carnivore. When it came to The Ice Age, extreme coldness forced Ailuaractos lufengensis (ancient pandas) and other carnivores into a narrow habitat. Available food shrank in scale, forcing the ancient pandas to turn herbivore.
Subsequent increasing survival pressure has further changed the giant panda into eating hard-to-digest and unwholesome bamboos.