How does hypothyroidism cause pitting edema in your legs? Is this serious?

Can. One of the consequence of untreated hypothyroidism is heat failure and that can cause pitting edema. Myxedema can cause non-pitting edema. In either case you need to seek care if you have pitting edema.