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.
108,712 questions
117,586 answers
1,356 comments
7,058,495 users