There are levels of respect. There is the very basic respect for someone else's existence. It involves things like giving physical space, aknowledging communication, recognition of feelings and basic needs, etc. Everyone deserves this, no matter how low on the totem you think they are.
People who highly value competency sometimes throw out the idea that people deserve even basic respect if they don't measure up. This is dehumanizing.