The notion is "to raise (someone) out of trouble." From c.1400 as "advance to the rescue in battle;" also "return from battle; recall (troops)." Meaning "release from duty" is from early 15c. Related: relieved; relieving.