He is God. We are His creation. He can do with us whatever He pleases in order to bring about His good and righteous plan. His desires and plans take precedence over ours. That’s what it means for God to be God, and that’s what it means for us to be servants of the King. He carries out His will and uses us to do it.
The Psalms contain the full spectrum of human emotion and passion poured out before God in song: love, anger, wrath, guilt, repentance, lament, happiness, blessing, cursing, prospering, lacking, fear, hope, peace, praise, adoration, thanksgiving, and any and every other disposition, affliction, or perspective that is felt and contained in the human experience.