They're extremely cheap to make and very light yet strong.
A plastic jar is going to weigh like 10% of what a glass jar the same size weighs and it won't shatter if you drop it. That's a pretty big advantage when you're shipping a tractor trailer full of jars of spaghetti sauce or something.