IR code as learnt codes generally won't do the repeating and length of code properly.
To be fair, quality remotes don't just learn a raw signal. They take in the raw signal and then decode it to identify the protocol, device and command details so then it can be recreated programmatically, with the correct parameters, including repeat pattern and length.
But yeah, cheap remotes just learn a sequence, which is definitely not the same thing. This usually works fine for most buttons as they won't need to repeat.