The officer is not trying to sneak up on you. They are simply trying to minimize the risk of getting hit by oncoming traffic and exercise caution to avoid violent attacks. Remember the officer does not know who you are and that can be a concern to their personal safety.