wander away (from someone or something) and wander off (from someone or something)
to roam away from someone or something. The little boy wandered away from his mother. He wandered off from his sister. The dog wandered off.
It means that someone has gone to another location with no real purpose. It can also mean to become lost, such as--> "He wandered off the path and became lost in the woods."