As noted by Anwar's comment on the answer, this behavior occurs when the bash tag is used in the question, and adds the coloration to code snippets used in the answers. This is a feature.
The feature is described here: Editing helps - Syntax highlighting
Also take a look at this question: Changes to syntax highlighting