Does everyone who is doing a PhD has to dabble in philosophy to a certain extent?
No. This is a misinterpretation of what “Ph.D.” means. The full title of the degree is Philosophiae doctor, technically a doctor “of philosophy.” However, this does not mean "philosophy" in the modern sense, but rather someone who pursues knowledge (“lover of wisdom”—the source of "philosophy"), not necessarily someone who studies philosophy.