They not not say that it's "purely genetic", but that's the impression one gets, that all those lifestyle params don't play any role...
Wikipedia says it's "a mix of genetic and environmnetal factors", and includes all of the above factors I've mentioned. But I've read many times in the past decades articles insisting that those other things don't matter (and presenting it as the medical consensus)...