As soon as food is secure and in surplus, it allows people to focus on other things with their 'free' time. Historically, it was improvements in agriculture that freed people to become craftsmen, etc, thus leading to improvements in all areas of life.