The likely meaning is that God, having removed their symbol of authority, puts a loincloth on the kings which is worn for doing hard physical labor, and so depicts a slave.