It could be due to infection either from an overgrown claw that has grown into the Paw pad or a bite or similar puncture wound.
It will probably go away on it's own. But a vet visit is recommended.
Hope your kitty feels better soon.
98,443 questions
94,801 answers
1,270 comments
6,992,615 users