They don't belong to the same class. When desire for Bhagavan appears, desire for worldly objects starts vanishing. Desire for worldly objects is selfish. Desire for Bhagavan is selfless.