Saying its ironic that nih.gov has both articles is somewhat like saying its ironic that Google has any two articles.
Disclaimer directly from the linked webpages: "As a library, NLM provides access to scientific literature. Inclusion in an NLM database does not imply endorsement of, or agreement with, the contents by NLM or the National Institutes of Health. Learn more about our disclaimer."
It's in the same boat with IQ, it's a useful tool if you accept it has limited uses.
BMI can't distinguish between fat and muscle which is enough to disqualify it from any serious consideration.
IQ is similarly simplistic and attempts to measure something for which we don't even have an agreed-upon definition.
https://www.fatcalc.com/bf lists several alternatives, along with their estimated accuracies. BMI is the least accurate method short of taking a wild guess.