Margin check at exit

Why does zerodha checks selling margin at the time of Exit.