It kills any cell, it's not discriminatory. Oh, and UV-C is carcinogenic. Once you understand that you might appreciate why we don't just shove a UV light up a colon.
Well, everything is carcinogenic. Given that sunlight has plenty of UV-C, it's probably okay to expose tissues to it briefly. (Of course, this is one of those treatments that definitely needs careful study.)