Guinea pigs cannot eat processed and cooked foods because they contain excessive carbohydrates and novel chemical compounds that are harmful to their digestive system. These foods can cause digestive issues and lead to potential health problems for guinea pigs. It is best to stick to their natural diet of hay, fresh vegetables, and a small amount of pellets to ensure their well-being.