Stretching is used to improve flexibility of muscles, which may have been affected by an injury or surgical procedure.