I guess an automatism defence was not presented the learned magistrate. They are quite rare and I doubt many magistrates have considered them.
Call me cynical but if diminished responsibility and automatism was accepted then they would not be rare any longer and every second person would claim the defence!
Thankfully here in NZ diminished responsibility is not a defence.