Hosea said that the prophet should be a sentinel or watchman for God over the territory of Ephraim. However, the bird hunter or fowler had set snares for them. There was so much hostility in the house of God. They simply corrupted themselves too much. It was like in the days of Gibeah, as found in the situation over the concubine at Gibeah, in Judges, chapters 19-21. Then Hosea repeated what he had said in the preceding chapter that Yahweh would remember their iniquity, so that he would punish them for their sins.
However, they did not obey the voice of the Lord to serve the Babylonian king. Then God carried out the threats that he spoken through his prophetic servants. Thus the bones of their kings and their ancestors were brought out from their graves. They were exposed to the elements of the weather, the heat of day and the frost at night. Meanwhile, they all perished in great misery by either of the 3 famous ways of dying in Jeremiah, the famine, the sword, or the pestilence. The Temple or the house of God was torn down because of the wickedness in the house of Israel and the house of Judah.
Now David made his case for why he was not wicked. Mainly, because he was loved by Yahweh, he was able to enter the house of God. He would bow down before the Temple because he was in awe of Yahweh. He wanted Yahweh to lead him in the path of righteousness. He wanted Yahweh to make the path straight for him. Out of God’s love he wanted to follow the straight way of Yahweh.