It looks like he injured himself, perhaps trying to escape? It looks a bit infected. If I had to guess I'd say a fungal infection, but I'm not a vet.

I think it needs an antifungal treatment prescribed by a vet.