He retired because he thought he achieved what he set out to do. People have miss understood the effect of Rachel's death.
Bruce had envisioned his life after Batman being with her. Without her and without a needed to be Batman he had no idea what to do with himself. The public image of Bruce Wayne was an act. He was not going to be that guy for real. He clearly did but some time into Wayne Enterprises before his full seclusion.