For a CS PhD, I think it's safe to say they got into CS because they have some interest in coding. But that's not always the case for students in other STEM fields. There are plenty of PhD's who were never formally trained in software and their advisors (especially older advisors) consider programming ability akin to operating a TI-83+.