IQ is highly correlated with nutrition. Very likely, being food-insecure has a direct causal effect of lowering IQ. It isn't a thing fixed from birth.
Now of course, if you are raised on a diet of sugar and lead-laced air and water, you won't reach your natural genetic potential. And if you are raised by billionaires with a live-in chef and nutritionist and tutors, in a place with squeaky-clean air and water, you might reach your full potential.
But those things merely optimize, or impede, the raw material you were born with.