Medicine is "ultra-processed" as well, and goes in your mouth, but the study is certainly not implying that medicine, on the balance of probabilies, is unhealthy for you. That's where it makes a difference. It's not "don't put anything in your mouth that's ultra-processed", it's "don't rely exclusively/mostly on ultra-processed stuff to replace healthy food intake".