It is astounding to me to see how many finance articles online speak of Roth 401ks and IRAs as though they are a type of asset that you buy. Instead, it would be more accurate to say that it is a type of account with tax benefits and a few restrictions that you can use to purchase assets on more favorable terms. It is analogous to a contract with the government that gives the investments you make certain benefits so long as you comply with the Roth IRA rules and contribution limits.
Philosophically, all IRA accounts are about making a deal with the government. You are seeking tax benefits that allow you to compound your funds tax-free as long as your money remains in the account. Meanwhile, the government is seeking a guarantee from you that the funds will actually be used during your traditional retirement age so they impose harsh 10% penalties for early withdrawals that also carry taxes at ordinary income rates for non-qualified withdrawals (in addition to waiting until you’re 59.5 years old, there are a couple of other circumstances that permit you to make withdrawals from your earnings such as a home purchase, but your head is not in the game if you already have your mind on ways to withdraw the money early).