The lump could be a tumor. You should take your dog to the vet to see if the tumor is benign or cancerous. The vet can do a biopsy to see if it's serious.
Lots of things could, he could have injured it or maybe he has a tumor or inflammation. You should probably have a vet look at it if it seems to be bothering him.