Why do you use “ser” instead of “sir?”

I haven’t always used “ser” exclusively, but when I have, it’s because I was looking for a sexually neutral term of respect for a superior.