No, he did not retire due to injury. He retired due to a combination of factors, including his age, his desire to spend more time with his family, and his belief that he had achieved everything he could in the sport.
The Daniel Schwaab Revelation: How Well Do You Know the German Football Sensation?