There are a few differences between Luna and Titan.
One of the primary mechanisms for atmospheric loss is thermal escape. Titan is much colder. The particles which escape are essentially the tail of the Maxwell-Boltzmann distribution, the portion with velocity higher than the escape velocity. This end of the distribution is dominated by an $e^{-E/kT}$ contribution, so as you'd expect, lower temperature means fewer particles with enough kinetic energy to escape. Note also that since we care about escape velocity, while the distribution is really about energy, more massive particles won't escape as easily. Titan's atmosphere is mostly nitrogen, while the moon is mostly helium and argon. The helium in the moon's atmosphere is easily lost, since it's so much lighter.
Another big cause of atmospheric loss is the solar wind. Titan itself doesn't have a magnetic field to protect it from the solar wind, but it does happen to orbit an enormous planet with a magnetic field. Titan is protected from the solar wind by Saturn's magnetosphere. Titan orbits at about 20 $R_S$, while the magnetopause is somewhere between 16 and 27 $R_S$, so Titan is inside the magnetosphere a substantial amount of the time. There are a lot of complications due to passing through the magnetopause, but from what I understand, the net effect is definitely protective. And of course, Titan is farther from the sun, so the solar wind is weaker.