Another explanation for toddlers suddenly hitting themselves, is that they may be in physical pain. For instance, toddlers that hit themselves on the side of the head may have an ear infection. Meanwhile, babies who are teething may also hit themselves at times to cope with the pain in their gums.