How does that happen?

Why or how does a babys umbilical cord get wrapped around theyre neck? Ived heard and have family members whos that happen to theyre baby when theyre born its a scary thought and feeing i have about a week left and just scared of labor and what might happen to my baby. I wanna know if i can prevent it or does it happen by itself?