I don't think that you need to worry about this. He probably just scratched himself. Sometimes my cats also get this. If he continues to scratch himself and his ear gets worse then I would take him to the vet.