HTML officially only allows <ul> nodes to have <li> children (see MDN). Many browsers are okay with directly nested lists, but they tend to mess up parsing of more typical list structure (moving sublists that were supposed to be in the item above them into their own item), hence the normalization.