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.
114,167 questions
124,942 answers
1,375 comments
7,059,696 users