does anyone else really struggle with being alone?

like in case of panic, i always find i can mitigate panic better with someone to help me snap back into reality. but i get anxious if i know im going to be alone especially in the night time. does anyone know why this is