At least, that’s the way we know it these days.
Garland plays Esther, the second of four sisters.
That’s where the song comes in: Esther sings it in an attempt to comfort the child.

You might also notice that the movie version has another line that’s unfamiliar.
