height is the vertical measurement of the container.
line-height is the distance from the top of the first line of text to the top
of the second.
If used with only one line of text I’d expect them to produce similar results in most cases.
I use height when I want to explicitly set the container size and line-height for typographic layout, where it might be relevant if the user resizes the text.