The Toffees dominated the game at Goodison Park and had a comfortable lead going into the final moments, but Newcastle defender Florian Lejeune scored in the 94th minute and then equalised a minute later.
Marquee summer signing Moise Kean scored his first Everton goal since his summer move from Everton, celebrating wildly after putting his side ahead midway through the first half.
“For his confidence it’s important,” Ancelotti told BT Sport, on his compatriot’s first Everton goal.
“He played well and worked hard for the team. I’m pleased for him and this will do his confidence good.”
His strike partner Dominic Calvert-Lewin doubled their lead early in the second half, continuing a rich vein of form with his fifth goal in his last seven appearances.
Newcastle had only had one shot on target before scoring twice in injury-time, something that Ancelotti sounded dumbfounded by in his post-match interview.
The three-time Champions League winner was keen to stress how well his team had performed for 90 minutes on the night.
“There are things in football you cannot control,” he added. “We conceded without any reason but the performance was good.
“We played a fantastic game and we were unlucky but nothing changes – our Premier League continues, we have to stay focused.
“We were two nil up, had opportunities to score and we played attacking football. I’m really pleased with the performance. These results are not frequent but they can happen.
“We have to stay on the game for 90 minutes but I’m not saying anything to my players. They played well and it can happen. It’s just unlucky for this game.”