Every year when I was in school, the school nurse came in at the beginning and at the end of the year and measured our height and weighed us. This went on our permanent record and I still have my old report cards which show this. A rough calculation of a BMI would be easy to make from those numbers.

I don't see that as particularly invasive, then or now.