Idioms, like phrasal verbs, are just little chunks of speech that can't be treated logically. As Ali notes, I've always heard the phrase with the word "too" at the end: "You can't have your cake, and eat it too."
The words are what they are and mean what they mean, and the word order is traditional.
Another example, one that's become current in the last twenty years or so, is "a steep learning curve." Logically, a steep learning curve means the amount you learn rises quickly in a short period of time, so it should mean "easy to learn," but, of course, it means "hard to learn." Logical or not, if someone says "steep learning curve" they mean "difficult," and you'd better say it the same way if you want people to understand.
Another example: if something is a real bargain, people will say "it's cheap at half the price" when, logically, it should be "cheap at twice the price" (it's so cheap that you could double the price and it would still be cheap).
Try not to let it bother you.