body fat

I have a really stupid question. I can understand height and weight being part of the equation, but what does age and gender have to do with it?