Why does a command against idolatry (Leviticus 26:1) follow laws about slavery and poverty? Because even the lowest slave bears the image of God and because unchecked greed leads to reliance on things rather than reliance on YHWH.