USACO Bronze Lost Cow Problem

Hi I’m fairly new to USACO and have begun with simulation problems, specifically the lost cow problem here: USACO

I looked at the solution provided by USACO Guide here: and I have a question about the code.

In the event that Bessie the Cow is not found, totalDistance gains the directionDistance * 2 (line 24). I’m confused about this because I thought it would work to just add the distance, why do u need to multiply it by 2?