The x-shape on the screwdriver head matches into the likewise formed slot of the screw, that is held in place And so the power on the torque is centered By natural means. This ensures the screw is driven straight.
Bolt https://types.blog/types-of-screw-heads/