It could be an abscess. Has the rat been scratched or injured at all? It should see a vet to determine if it is an abscess or a tumour. Hope all goes well!