We may be tempted to blast Israel for such an oversight. They should have known better. After all, they are God's chosen people. Each of these, in and of itself, is not bad. But, none of them can truly help us deal with our sin.
Sin is first and foremost vertical.
When we sin, we sin against God. David clearly understood that sin is first and foremost directed against God. Sin is primary relational. We tend to think of it as only being behavioral. When we sin, we are putting ourselves in God's place.