I don't think anyone is suggesting to not educate yourself and instead invest, but the point is what even a small amount of money can do over a long time.
I think the point is that there are some non-stock investments that also pay off. Looking at something like this can feel very either/or: "If only I didn't do X, I could have invested the money."