IMO if cake is part of the meal then people - children included - should be allowed eat whatever parts of the meal they desire, including the cake, until they feel satisfied.
I take your point. Maybe it's a case of framing what we actually see dessert as, which will of course probably differ between people.
IMHO, I think there's a reason why the cake isn't served up at the same time as the main meal, and is virtually always served after the main meal - I've never known anybody sit down to a plate of cake and ice cream (or other sweet foods), finish it and then have a plateful of meat, veg, protein, carbs etc. afterwards.
The way I see it is that the dessert is a treat/reward, planned based on the assumption that you will have eaten your main meal already, without fuss or protest, so it's a kind of unwritten contract, based on balancing the high percentage of 'healthy' food with a small percentage of sweet, sugary food.
I do know that, as an adult, I have very often stated (truthfully) that I am full after the main meal and thus have declined any of the offered dessert - because I am indeed full and so cannot eat more.