When moving with the train, the speed of the train is your speed. You are in the same frame of inertia. When you jump in the train, you do not encounter air resistance, and you usually encounter little to no force and there is no change in your speed. That's why you fall in the same place when you jump.