Ba'athism does not advocate atheism, but official secularism. What does that matter if the state is majority Islamic? And it is not about hero worship or simple nationalism, but pan-Arab cooperation and advancement.
I thought perhaps this region would be more for Muslim nations understanding each other. Not forcing things on each other.