Twisting the mast sideways allows the main sail to have more attached flow on its lee side.
Also, and more importantly, it allows the unstayed portion of the mast, above the hounds, to be bent backward (sideways bend) by the main's leech. This helps to counteract the forward pull of the spinnaker's halyard.
GARY