Pandas are actually, er, mal-adapted carnivores… they can’t process the bamboo all that well (Guardian article). Or from Wikipedia:
Wikipedia: Pandas and their transition from omnivory to bamboo-eating
Despite its taxonomic classification as a carnivoran, the giant panda’s diet is primarily herbivorous, with approximately 99% of its diet consisting of bamboo.[53] However, the giant panda still has the digestive system of a carnivore, as well as carnivore-specific genes,[54] and thus derives little energy and little protein from the consumption of bamboo. The ability to break down cellulose and lignin is very weak, and their main source of nutrients comes from starch and hemicelluloses.
[…]
The morphological characteristics of extinct relatives of the giant panda suggest that while the ancient giant panda was omnivorous 7 million years ago (mya), it only became herbivorous some 2–2.4 mya with the emergence of A. microta.[64][67] Genome sequencing of the giant panda suggests that the dietary switch could have initiated from the loss of the sole umami taste receptor, encoded by the genes TAS1R1 and TAS1R3 (also known as T1R1 and T1R3), resulting from two frameshift mutations within the T1R1 exons.[54] Umami taste corresponds to high levels of glutamate as found in meat and may have thus altered the food choice of the giant panda.[68] Although the pseudogenisation (conversion into a pseudogene) of the umami taste receptor in Ailuropoda coincides with the dietary switch to herbivory, it is likely a result of, and not the reason for, the dietary change.[64][54][68] The mutation time for the T1R1 gene in the giant panda is estimated to 4.2 mya[64] while fossil evidence indicates bamboo consumption in the giant panda species at least 7 mya,[67] signifying that although complete herbivory occurred around 2 mya, the dietary switch was initiated prior to T1R1 loss-of-function.[69]
They will eat meat if the opportunity presents itself: Panda filmed eating meat in China - BBC News. They just won’t really go out on their own to hunt or scavenge for it.
Well, specialist herbivores have different teeth and stomachs for digesting plant matter. The silica in leaves, for example, will do a number on your (human) teeth if you eat too many salads. Ruminants have specialized stomachs to better get nutrition out of plants, which is why some of them can be entirely grassfed.
And their adaptations aren’t just in the digestive tract alone, but also in other parts of their morphology… specialized claws, beaks, mouths, filters, sensory organs, gut biota, etc.
Many plants are also mildly (or occasionally greatly) toxic in some way, and that toxicity affects different animals differently… frogs can store plant poisons in their skins, birds can’t taste capsaicin in peppers, koalas have specialized livers for processing eucalyptus oils, etc. Eating unknown plants is a great way to get food poisoning or die in the wilderness.
Different animals also have different nutritional needs, depending on their genes and what they’re able to synthesize internally vs getting from the environment.
There’s also just their behavioral preferences, both instinctual and taught. Your average housecat technically could eat a variety of meaty things, but very few of them do. If you put in a panda in a Burger King, it probably won’t try to break open the coolers looking for food. If you force-fed it burgers, it might do OK for a while, but probably wouldn’t be too happy (would anyone…?).
Monophagy (specialists feeders who typically eat only one thing) usually got there through slow evolutionary processes in limited niches; it doesn’t necessarily mean that their entire system is solely capable of digesting just that one thing, but that on the whole, the organism is geared towards it (from detecting to acquiring to ingesting to processing, and ultimately, to preferring that thing).
Humans too… even as an “omnivore”, there’s a lot of plant matter we also can’t readily eat without substantial processing, whether for toxicity or hard seed coverings or simply taste. We just have technology on our side, while animals need to wait for evolution to do its thang.