Could be an infection. Also though I hate to say it frogs can get cancer. Maybe it's benign? Only a vet would really be able to tell for sure.