Is it bad luck or bad genes that made me develop parathyroid tumor?

Both. Some of parathyroid tumors have no genetic bearing then you can call it bad luck, others hane genetic link as in men syndromes.