Yates joined the franchise with "Harry Potter and the Order of the Phoenix" (2007), which was the fifth film in the series. By this point, Watson was already established as Hermione.
While Yates did direct the final four Harry Potter films, his involvement came after Watson was already cast. He simply continued with the casting choices that had been made previously.