Q. A 30-year-old female patient who is 38 weeks pregnant is admitted to the labor and delivery ward with complaints of painful contractions that have been occurring every five minutes for the past hour. The patient has a history of gestational diabetes and hypertension. During the delivery process, the patient's contractions become less frequent and less intense. Upon further examination, it is found that the patient is experiencing uterine atony, which is characterized by inadequate contractions of the uterus. The patient is administered oxytocin.
What is the mechanism of action of oxytocin in treating uterine atony in this patient during labor?