It's really telling how he uses the term 'fasting', which is the same term we use when we deny ourselves food. He sees the act of restraining himself from watching younger girls in gymnastics as denying himself food.
The best way to teach a child how and when to apologise is by doing it.