By selling, S&L record a Capital Gain, this can be used now against any current losses they have incurred elsewhere. Buying back after 31 days establishes a much higher base price for future Capital Gains. It's an accounting issue. Hope this helps.
Be well