meaning of preposition "for" in "sing for joy" [closed]

I have read the following sentence:

They drink and sing for joy.

What does that mean? Are they so happy that they sing to celebrate it?


Here for means:

because of or as a result of something:

  • I'm feeling all the better for my holiday.
  • "How are you?" "Fine, and all the better for seeing you!"

(Cambridge Dictionary)

Usage etymology:

For alone as a conjunction, "because, since, for the reason that; in order that" is from late Old English, probably a shortening of common Old English phrases such as for þon þy "therefore," literally "for the (reason) that.

(Etymonline)