What is the difference between generosity and obligatory giving?

Understanding generosity vs obligatory giving in the Bible