It was born out of the savings-bank movement pioneered in 19th-century Scotland by the Rev Henry Duncan , concerned that his poor parishioners had nowhere to save money earned in good times to draw on in tough times later .