The author included both of these scenes in the story to develop a contrast between the way in which Robert interacts with Madame Ratignolle and the way he interacts with Mrs. Pontellier.
"The Awakening" is a novel written by the author Kate Chopin, which is considered one of the first works of feminist literature in America. The book explains many issues of women's lives, like the meaning of femininity and the struggle of motherhood. It also discusses the political and social climate of the country, and in particular the South, at the turn of the century. In these scenes the author wanted to make a comparison and make the reader understand how there is a different attitude from Robert towards Madame Ratignolle and Mrs. Pontellier.