The mason jar was made in 1858 after heat-based canning became popular in the early 1800s. The canning process experienced many errors due to imperfect seals. The mason jar solves this problem with its’ airtight seal and screw-on cap. The jars were helpful for people with short growing seasons; they could create jams and pickles to preserve the harvest. The mason jar has experienced a recent resurgence. The public has become increasingly aware of the high economic and environmental costs of food. Additionally, mason jars are used for DIY projects, such as turning them into soap dispensers.
I personally use mason jars for storing knick-knacks in my room, because I like to be able to see the contents. I also use the jars to store pantry food items, like oats and flour.
Source: https://www.theatlantic.com/technology/archive/2015/09/mason-jar-history/403762/