A picture is only a snapshot of time. She could have been trying to get him off the tracks before it was taken.
Or it could be his mum allowing him to play there while she was chatting on the phone.
I find it hard to believe that many mothers would allow that but there's always one.