A distilling flask in engineering testing laboratories is used for heating liquids to separate components based on their boiling points through distillation. It is commonly used in chemical analysis, purification processes, and the production of solvents or distilled water in the lab.