Sometimes placing a lid over hot liquid in a jar can create the appearance that the jar is sealed. It's not. If you want to store the jars on a shelf long term, you must water bath can them first to not only kill any bacteria that can lead to food poisoning, but also to seal the jar and prevent bacteria from forming later.