To grant the wish, the Devil needs to make everyone on Earth smarter, more enlightened, and more non-repulsive than the man currently is. So the man is wishing for everyone except him to be better; he’s improving the world but not benefiting himself so it’s extra humble and unselfish.