New trial ordered in taxi driver killing

A man accused of killing a taxi driver in 2013 will have a new trial, based on the judge having misled the jury about the nature of premeditated killings.

How does this come about? Surely the distinction between degrees of homicide is something which all judges should know, backwards and forwards. How could a judge then give direction to the jury that’s mistaken enough to spark a new trial?