It depends. Sometimes it's just like what you said. But some department have a very centric admission committee. Professors from all fields are in the admission committee and decide the application pool for faculty to select from.
I suspect when this happen, the competition is very tough. like cs@uoft. Even our ece department don't really do that honestly......