Giving a gift to a colleague who is leaving is not mandatory, but it is a thoughtful gesture that can express your appreciation and well wishes for their future endeavors. Whether you decide to give a gift or not depends on your relationship with the colleague, the office culture, and your personal feelings about their departure.