Do a search for "general welfare" in the text of the US Constitution. It's in there, and it's a thing Congress is specifically tasked to be responsible for - that is, they may craft law(s) to provide it. It is a thing Congress is allowed to legislate, unlike freedom of speech or assembly.