Answer: The theme is "those who sacrifice for others are great people."
Explanation: Even though the words "foolish" and "unwisely" are used at the beginning, the final remark lets us know that they are paradoxical in meaning: what is commonly seen as "foolishness" (giving up your "greatest treasure") is actually the highest wisdom when it is done as an act of love.