14th century Korea was a largely agrarian society. The ruling class, along with the monarchy had the sense of duty to relieve the farmers during a bad year of harvest even in the 14th century. They officially created a sort of grain bank where people can borrow grains during a bad year.
Other stories, records indicate the local magistrates would open the local granary to the farmers in the area during such time.
Is there any records of the equivalent of this sense of duty or practice in pre industrial European history?
Just to be clear, this is not an attempt to assert any superiority over any one of the cultures.
There is still scope for further replies, but you may be interested in u/sunagainstgold's earlier answer to When I return from the supermarket, my fruits and vegetables begin to go bad after several days. How did a farmer in the Middle Ages yield and preserve enough crops to feed his family year round?