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.
102,489 questions
97,678 answers
1,294 comments
7,007,794 users