Milo interacting with the soldiers would have been out of character for him. He still has the mindset of a kid from Victorian England who has to avoid the bigger kids that mean him harm, which usually involves running away. In Milo's mind, this situation is not very different from that, and so he runs away.