Noah and his sons were pure, but all flesh was corrupted.
A possible answer is that the wives that Noah’s sons chose to take with them had a genetic component of Nephilim.
Thus, some of Noah’s grandchildren could have become Nephilim.
At least that is one theory that I have heard from bible scholars.
ph
Strongly disagree but need sleep, more discussion tomorrow.