People who are playing on their own can practise with a metronome to help them to play to a steady beat. However, musicians also use rubato (rhythmic freedom), especially when playing music of a romantic nature. One has to learn to let the music “breathe” in the right way. This is not the same as playing unrhythmically (badly). It is something one learns with experience.