Cats are opportunistic feeders: if food is available, they will eat. This was a fine adaptation for cats' EAA, as for wild cats, food was much scarcer and would run away unless stalked and caught!
But leaving more than enough food lying around to be eaten ad libitum is a recipe for a fat cat, as they will not stop when they've had enough.