Cats are obligate carnivores - they must eat meat in order to survive. Some of the nutrients they need are not found in plants at all.
If the mind flayer needs to eat brains in order to survive, what choice does it have - be evil or willfully choose to die of malnutirion?
Given that cats are evil ... I'm not sure that's the best example.