Departments aren't stupid, though. They realize that grabbing star grad students with highly marketable skills in industry as they are walking out of their dissertation defense is probably the only shot they'll have at getting them. They will often "try out" industry or take a job at Google or MSR on the advice of their PI, noting that it's just as good as a postdoc but pays four or five times as much. Problem is, they then have to walk away from their $180k/year to take a faculty position that might not pay half that and could very well dead-end in a few years if the department leadership changes (or any of a dozen other precipitating factors) and they don't get tenure.
All that said, I personally know of tenure-track professors at two of the schools you mentioned, plus ones at quite a few other top-flight CS departments (Cornell, Toronto, Washington, Cal), who were hired straight out of grad school.
And while it is harder to transit (learning basic computer skills, while way easier than quantum field theory, takes time and effort), the opportunity gap is way higher. And it may be not a surprise that many data scientists with PhDs are physicists.