The 30-year-old defender shocked many when he announced his retirement from international football on Friday, less than a week after die Mannschaft defeated Argentina 1-0 to win the World Cup in Brazil.
However, Ibrahimovic, speaking after Paris Saint-Germain's 4-2 pre-season defeat to Red Bull Leipzig on Friday, believes the 113-cap veteran and Bayern Munich skipper bowed out at precisely the right time.
"I don't know what to say because he won the World Cup, so why not?" the Sweden striker told reporters.
"He did his job and to stop now is the best way, if he wants to stop. But it's his own decision and you stop when you're on top.
"He can't give more than this, so I think he finished nicely."
Lahm ends his international career as Germany's fourth most capped player in history, with only Lukas Podolski, Miroslav Klose and Lothar Matthaus boasting a greater number of appearances.