Mass. Gen. Laws ch. 47, § 4
Any number of towns may, at their joint charge and for their common use, erect or provide an infirmary and purchase land for the use thereof.