In horse racing, a trainer prepares a horse for races, with responsibility for exercising it, getting it race-ready and determining which races it should enter.
A trainer prepares a horse for races. This was in horse racing. This was with responsibility for. This was exercising it. This was getting it race-ready. This was determining which races it should enter.