Ants as a unified body of individuals are brilliant. Us humans could and should learn a thing or two from these insects. Ants eat a huge diversity of foods to include fats, cheese, breads, grease, other insects. Eating decomposing dying organic material is easier and less costly energy wise than eating live vigorous plant material.
Ants are amazing. Their social structure would blow you away. If people understood the life of ants they'd give up trying to kill them. They do not harm plants, don't care if they make aphid corrals on some plants. I love ants...I love bees and wasps and hornets (even though I was stung a minimum of 47 times by bald faced hornets)...I've never found the need to kill an entire community, not once in all my years which are quite a few. These guys humble me in a big way.
If there is a problem with ants in the home it is because of hygiene and leaving food out to announce in big neon signs that food is to be had!! Then we idiots hire some outfit to kill ALL INSECTS in and around the home. Don't get me started on the stupidity...the horrors we then get to deal with when we alone are then in control of all insects that once were never a problem. So sad, and so unnecessary.