It can often make sense to quickly buy back your sold option if the time value of the option is low; for example, if the underlying has moved too far away from the exercise price.
Then it makes sense to sell new options with high time value or to select alternative securities for the option sale.