Question: who gains from unanticipated inflation?
Answer: Lenders are hurt by unanticipated inflation because the money they get paid back has less purchasing power than the money they loaned out. Borrowers benefit from unanticipated inflation because the money they pay back is worth less than the money they borrowed.