What motivates people to debate religion? Do they do it for an ego boost?

I got into 2-3 disagreements with a friend about religion and I told him if he continues to fight me, than I do not want us to be friends anymore. I don’t know if I’m being lazy but I don’t have the patience to fight a stupid person.
What motivates people to debate religion? Do they do it for an ego boost?
Post Opinion