Another reason for not using the mason jar for cooking or baking is that the heat of the oven cannot reach the center of the food in the jar, so bacteria are not killed during the cooking process.
You can put a mason jars and lids in the oven. Mason jars should only be put in the oven if you are going to sterilize them for food preserving purposes.