This could be due to eczema or just from the swelling. They can be painful due to the skin being broken to move them. Best to have them checked out, he may need a steroid cream, compression
, or it could be a fungal infection
, but the only way to know would be to have them looked at.