You're fixating on a singular definition.
A homemade cake is minimally processed. The flour and sugar are processed but nothing that heavily alters it.
A commercial cake on the other hand has stabilizers, ph balancers, etc.
You're over thinking it. Almost nothing made at home is ultra processed unless you're doing some weird sausage making. If you can name the ingredients easily, it probably isn't ultra processed.