Network Rail says wildflowers and trees planted along tracks help create a "wildlife corridor".