yes, you’re absolutely right, it is. The reason it doesn’t seem to work for you is because the way it works doesn’t translate back into English without sounding odd. It’s like saying “I need something for its eating”, which of course we don’t say in English, but it’s correct in Welsh, and to simply use “i fwyta” here would indeed be wrong.