I feel like it was kind of rude what my coworkers said to my boss. Am I right or wrong?

One of my coworkers is working on a difficult problem. My boss said "well I'm sure you'll figure it out". Then my coworker said "wow thanks for the encouragement" and pretty much everyone laughed but me. I didn't laugh because my boss didn't laugh lol.
8 answers 8