I love that scene. It's a quick moment, but perfect.
people are catty, and no one is perfect. people make fun of others without really thinking. it seemed like normal behavior and rounded out her character. Also, you have to remember you're probably thinking about it in context as a whole series where Shelly is basically a "good guy." But when it aired it was when everyone was a suspect in a murder mystery... so when we were all speculating, "Is it Leo?" "No, it's James... he killed Laura!" Someone could also chime in with, "Hey, don't forget Shelly. Remember that scene in the diner where she makes fun of Leland."
Oh, and she's also sharing the info and joke with the truck drivers. Basically, the social equiv to her -commenting on the midclass problems, not their own.