20 years ago "Mystery Shopping" wasn't as developed as it is now. I think I saw a notice on the customer comment card at a restaurant franchise, and was easily accepted into the program.
More recently you typically have to apply just like any other job, even if the compensation is minimal.