Yeah, I had a similar conversation with a founder a while back. Company he had founded was getting acquired. He was a minority stakeholder at this point. No ability to oppose the acquisition. Acquiring company wanted him to sign docs saying "I relinquish all my interest for no compensation". His answer was basically something like "I think you can spare $10000 if this is that important"
Yes, gifts are legal. But the attorneys weren't asking for a gift, they were asking him to sign a binding legal document. And generally the law does not recognize "gifts" to for-profit entities; such a transaction is characterized as a contribution to the entity...which in the original comment would have defeated the very purpose of the agreement the attorneys were asking him to sign.
Furthermore, consideration isn't required to enforce future performance. It's a fundamental basic requirement to have a contract in the first place. Without consideration, there is no contract.