Someone who happens to walk into a store while it's being robbed is an example of a bystander.
YourDictionary Definitions. Copyright © 2012 by LoveToKnow Corp.
See bystander in Webster's New World College Dictionary
See bystander in American Heritage Dictionary 4
Learn more about bystander