Ravens need a running back after all of their own main ones got injured. Zack Moss can be used as a secondary back or the lead back, as he was a third round pick last year. The Bills clearly aren't using Moss, as he was inactive (non-injury) and they get two fourth rounders for him.
I think this is my first NFL trade (I don't do many, though I am a football fan).