And the Lord God formed man of the dust of the ground, and breathed into his nostrils the breath of life; and man became a living soul. [Genesis ii.7]

The sense evolution seems to be from "breathe into" to "infuse animation or influence," thus "affect, rouse, guide or control," especially by divine influence. Inspire (v.) in Middle English also was used to mean "breath or put life or spirit into the human body; impart reason to a human soul." Literal sense "act of inhaling" attested in English from 1560s. Meaning "one who inspires others" is attested by 1867.