I agree with the
Dr.Fapalot assumption that this gloomy institution, which made all of us tense up, is necessary for the author only so that Sofia will perform some stupid things and she will have added dirty glasses, so necessary for us in the game so that the plot can move further.
Also, if we take into account that Patricia is present in the institution together with Sofia, then the events will probably add points for the relationship between the sisters. After all, their relationship should also develop, they will soon go to the ranch outside the city, we want this trip to be interesting!
In addition, we can assume that if Sofia gets a little excited at the concert because of the situation, then after the concert, being alone with Sam, she will allow him a little more than before!