Origin of the phrase "There, there"

According to the Word Detective: