The perception that all scientists are atheists comes from a small number of loud dogmatists. This is exactly like the perception that all Christians are literalist fundamentalists or hold right wing political beliefs.
All scientists are not atheists, just the smart ones. Depends on your interpretation of the word though. I don't consider atheism to be a complete abscence of philosophical pondering. I believe we haven't explored emergent consciousness enough and that makes it a mystery. But a scientist believing in a God from an ancient textbook is a red flag for me