It's a reflex newborns have for a while. My sons 4 months on the 20th and he still moves his arms when he's sleeping which wakes him up (why I swaddle him).
it's a natural things baby's do after there born I dunno why but there still getting used to being out of the womb mine little girl used to but she doesn't anymore she 5 week's.