This is out of context but when I see photos of trains, it reminds me of those of in the anime series/movies.
As what you've uttered, I must say that it is true. Some just comes in our life to give us experience, teach us a lesson, et cetera. But what we just have to do is to accept the things that may come in our way.