Bayern, who have already wrapped up a fifth consecutive league title, trailed 4-2 against second-place Leipzig in the 83rd minute.
However, Die Roten produced a scarcely believable comeback started by Robert Lewandowski, with David Alaba equalising and Arjen Robben's fine effort deep into stoppage time earning the dramatic win.
And head coach Ancelotti reflected on a stunning turn of events.
"It was an absolutely crazy game," Ancelotti told reporters.
"It was a very open game, just like we expected.
"Leipzig started strongly, but we were the better team towards the end. There was some very attacking football. We could have done better defensively."
And Ancelotti expects Ralph Hasenhuttl's men, who were only promoted last season, to be just as competitive next season.
"Leipzig have been a fantastic rival this season," he added.
"They have played surprisingly well. But it is just the start of a great era for them. They have some young players and are very motivated.
"They are playing Champions League football next term and that will be a great experience.
"Both teams have achieved their goal this Bundesliga season."