I think what you said may be because the company's salary date is later than the social security fund date, so the company will pay part of the social security fund on your behalf. In order to prevent you from leaving suddenly, you will be charged a part of the fee!
But on the whole, it is unreasonable!
Good luck ~ ~ ~