A train operator said it took more than 5,000 children on free trips under a scheme to help disadvantaged pupils.