Sterilizing jars helps to kill any bacteria or yeast that could cause your jam to spoil.