This is expected behaviour as RTI is meant for fast closed-loop control. With RTI, the OCP is not solved (only a single QP approximation of the nonlinear OCP is). If you start from a good initial guess and apply the solution in an NMPC fashion, you can typically expect good closed-loop performance.
Compare also the references here: