The underlying funds kick out dividends and capital gains distributions each year, which in a taxable account would cost you some money that you don’t have to pay thanks to the 529 structure.
Obviously, the government doesn’t really want you to use a 529 plan for retirement savings. Therefore, there are 529 account rules and penalties in place that you should be aware of.