He argued that his scientific training made it impossible for him to be anything but an atheist.
"Anything but an atheist" means an adherent of any belief system (Christian, Hindu, Buddhist, Muslim, etc.) except atheist.
It's impossible for him to be Christian, Hindu, Buddhist, Muslim, etc. The exception is atheist.