Can someone please explain this to me?

I mean, I get it on one level. No, a cupcake is not a hat. But why is this tidbit of wisdom on a t-shirt? And why is it on a pony’s head? I don’t understand. Can anyone help? I don’t want to be in the cupcake dark. (T-shirt available from Hot Topic for $22.50.)