It would be much more difficult to feed power back into an AC grid from a regenerative brake. With a DC grid, no synchronization is needed.
1) modern railway is fully IGBT powered. In this case it is trivial to inject current.
2) with DC current you need a substation capable of converting AC to DC (easy: bridge rectifier) but also DC to AC (to given tolerances) which is much more cumbersome.