That might have been the motivation of another, to prepare his fellow Auror, but mostly it was because Miles enjoyed harassing Ernie any way possible. There was a part of him that did attempt to take his job somewhat seriously, but mostly it was all a big game in the positive sense, as Miles refused to let this life get him down as he'd seen happen to others. And again, harassing Ernie. That was always good for a laugh before he never backed down and gave as good as he got. That Miles considered him his best friend, without ever saying or acknowledging that sort of thing, spoke volumes.
"Maybe I'll ask Hannah," he said with a wicked grin, curling Ernie before stepping into the next thrown curse.