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,796 questions
119,320 answers
1,362 comments
7,058,516 users