It prevents the tail plane applying excessive nose down pitch in autorotation by disrupting the airflow over the top of the tailplane, otherwise the rear cyclic travel would be restricted.
The tailplane is sized and configured to apply a download to keep the cabin approximately level in the cruise. The spoiler is simpler and cheaper than a moveable tailplane.