In general terms, it is because Ti has a lower "electronegativity" (or higher electropositivity, but you never really hear it said that way), than Cr.
To be really specific, this is the same method as galvanic corrosion, and this is because Ti has a lower "Reduction Potential" than Cr.
You can see this on an electrode potential half-reaction chart, which would list electrode materials, ordered by their voltage potentials.
To give you a general feel of "aggressiveness", here's a list of common anodic metals you probably encounter regularly in decreasing order of aggressiveness:
Mg
Al
Ti
Mn
V
Sn (tin)
Zn
Cr
Fe (iron)
Any metal above iron in a chart ordered like this, could be used to protect iron from oxidation. The higher it is, the more aggressively it protects iron, BUT there's alot more than that involved, when selecting something for anodic protection.