Called a parasomnia
The person having them is really not awake and they go away spontaneously. The person usually has no recollection of them. They usually stop in childhood and are uncommon in adult life. If they suddenly appear in adulthood, i would recommend seeing your doctor to look for other sleep issue.