It could be because of teething issues which normally resolves in a few days , but we have to monitor whether child is active, passing urine frequently, no fever.
Or it could be some throat infection for which you need to show to some doctor.
Next Steps
just wait for 2 to 3 days , if child is active and no fever, no fast breathing, passing urine frequently. if not show him to a doctor