Actually it doesn't:
Ps.150
[1] Praise the LORD!
Praise God in his sanctuary;
praise him in his mighty firmament!
[2] Praise him for his mighty deeds;
praise him according to his exceeding greatness!
[3] Praise him with trumpet sound;
praise him with lute and harp!
[4] Praise him with timbrel and dance;
praise him with strings and pipe!
[5] Praise him with sounding cymbals;
praise him with loud clashing cymbals!
[6] Let everything that breathes praise the LORD!
Praise the LORD!
With some of the previous psalms, there's the warnings of what will happen if one doesn't obey God.
That's book 5 which ends with Pslam 150, the last you hear of the wicked is in Psalm 149.
Book 4 ends with psalm 106 there are 5 books of psalms
book 1 1-41 poetically like Genesis the Blessed man almost all by David
book 2 42-72 poetically like Exodus mostly priestly authors Sons of Korah et al
book 3 73-89 poetically like Leviticus mostly priestly authors Asaph, Sons of Korah, et al
book 4 90-106 poetically like Numbers wanderings of life <-- the issue under discussion is the ending here Moses, David et al
book 5 107 - 150 poetically like Deuteronomy coming home David and untitled
So... yes book 4 of psalms says those who will proclaim the deeds of God are justice and do rightly
in Psalm 106 and then recounts a history of unfaithfulness of israel but so does Psalm 78
There are 3 historical psalms 105 106 and 78
105 is recounts faithfulness of God in history
78 and 106 recounts the unfaithfulness of Isael in history
but it doesn't end there since the work of Messiah bookends book 5's with 107 and 167 147 which are in the spirit of Isaiah 61