Sterilizing mason jars??

I just want to make a homemade almond milk. It’ll probably only last 3-4 days and I keep reading things about having to sterilize mason jars? I just got the cheap Ball mason jars and I already washed it but do I really have to boil it for sterilization?

What if I want to store sugar or flour in a mason jar?

I don’t understand why I can just put food in a plastic container yet with a glass jar it has to be sterilized? Unless sterilization is only for foods that’ll be canned for a long period of time

Any help?