No, the cat didn’t actually eat his homework but the poet says that so that he can save himself from the punishment for not completing his homework. He says that he accidentally dropped his homework paper in the cat’s plate and the cat must have eaten it as he eats whatever he is served.