The x-shape in the screwdriver head fits in the equally shaped slot in the screw, which is held in place Hence the force with the torque is centered Obviously. This makes sure the screw is driven straight.
Phillips- https://mypresspage.com/story2654466/not-known-factual-statements-about-types-of-screw-heads