That was my (subtle) point.
"We don't need no steeenking badges", and "Play it again, Sam" were what people were saying as they came out of the movie theater because that was what they remembered from the movie.
Thus both of those statements have become part of language, even though they were never spoken literally, word for word on the screen.