A pillow is a cushion for the neck, which is designed to meet physiological functions. If you don't sleep with a pillow, there is no place to lean on your shoulders and face when you sleep on your side. When sleeping on your back, the distance between the back of your head, shoulder blades and back cannot be adjusted.
If a thin person sleeps on his back, almost as high as his back, it is not necessary.