Middle English pinen "cause to starve" (c. 1300), from Old English pinian "to torture, torment, afflict, cause to suffer," from *pīn (n.) "pain, torture, punishment," from a general Germanic word (compare Middle Dutch pinen, Old High German pinon, German Pein, Old Norse pina), all possibly ultimately from Latin poena "punishment, penalty" (see penal). If so, the Latin word probably came into Germanic with Christianity.
The intransitive sense of "to languish, waste away, be consumed with grief or longing," the main modern meaning, is recorded from early 14c., via the Middle English intransitive senses of "endure penance, torment oneself; endure pain, suffer." Related: Pined; pining.