There's some common misguided idea that religion offers a meaningful answer to big questions; like death, the universe and everything.
It might also be an attempt to not have religious people freak out about alien life, while ignoring how alien life will feel about religion - assuming they are sentient it's unlikely that they share religious beliefs with the earthly theologians.