My guess would be a scratch or bite that got infected and that swelling is probably puss.