Redshift space distortion of 21 cm line at 1 < z < 5 with cosmological hydrodynamic simulations