I'd agree with you if the turnstiles and parking barriers were added solely to track employee movement.
I don't know if that was the case at Yahoo, though, and I'm willing to give them the benefit of the doubt that they were originally meant for something more useful, like making sure there were enough parking spaces open for Yahoo employees.