The apology in that case is more a polite society way of expressing "I appreciate your work, this isn't me taking it as something else".
I somewhat agree you don't need to apologize in that particular case you've outlined; medical professionals, of which that person effectively is, have usually seen it all. But there is a reasonable justification for why someone might choose to throw out an apology there all the same.