These privileges were demanded by the szlachta as a compensation for their participation in the Thirteen Years' War.
Why did the szlachta demand privileges?
their participation in the Thirteen Years' War.