When you spawn, reload, pick up a new weapon, or switch weapons, it often makes noise that an opponent can hear, giving them the advantage of knowing where you are.
Therefore it can be useful to melee (at just the right time) when you spawn, pick up a weapon, reload, or switch weapons, as it makes no sounds that can give away your location.