Why is the thyroid gland in the neck?
Almost certainly not the pituitary proximity hypothesis. Simple counter-examples include the adrenal gland (ACTH-cortisol axis), liver (GH-IGF1 axis) and  the gonads (LH/FSH axis).