After you retire and quite working, money in a 401k or traditional IRA can be converted to your Roth IRA in annual rollover amounts that stay in the lowest tax bracket(s), which could be 0%. Roth IRA rollover contributions can then be withdrawn without paying taxes or penalties if you let them sit in the account for five calendar years (hypothetically four years and one day, if you timed it right). This is the Roth IRA pipeline methods (search the forums for that phrase) and you can use it to access your retirement accounts at any age, as long as you have five years of expenses saved up in more accessible locations.
One of those accessible locations is your existing Roth IRA contributions. You can only contribute $5500/year so the amounts are unlikely to be large, but if two of you have been maxing it out for ten years you might have nearly $100k in there. Only your contributions, not the earnings, can be withdrawn at any time for any reason, without paying taxes or penalties.
There are some additional ways to access your 401k money, like 72(2) withdrawals, but they are generally not very useful right now because interest rates are so low.
The other alternative is to just take the damn penalty. You can always pull from your 401k early if you pay the taxes and the 10% penalty, and sometimes it's worth it. For example, if you are currently earning money in the 25% tax bracket, then you save 25% of each dollar you contribute because you're avoiding paying your marginal (highest) tax rate. In retirement, if you have no income, you can withdraw that money in the 0% or 10% tax brackets (which are pretty large after deductions and exemptions, over $50k/year for a family with kids), pay the 10% penalty on top of your effective tax rate on the withdrawal, and STILL come out with a much better tax rate than you would have paid if you had failed to max the 401k while working. This is why it is virtually always better to max out your 401k. Even the "penalty" is really just an extra tax, which comes out to be a lower tax rate anyway. People just hate it because it's called a "penalty".