The mechanical aspect comes about since velocity is not recorded so all the notes are at the same loudness, although loud and soft pedalling was often mechanically reproduced, so expression was limited.
There were top end systems that recorded expression down the side of the roll in a kind of post production, but only in a handful of discrete steps.
There's no step recording, the artist plays a special recording piano.