From my experience the amount of miles I have been compensated seemed to reflect my status at the time rather than the reason for the compensation.
I don't think the cabin class you flew should have any bearing in this instance. Did you check the dessert your daughter was offered? Did you ask the crew if the item was gluten free when they gave it to her?