Their extraordinary stamina comes from three factors.
One is their Ninjutsu training. Most martial arts stress propper breathing for maximum performance. Ninjutsu (among other styles) Actually have breathing excersises and techniques for stamina, and to help ki flow easily throw the body, as well as conditioning the body from the inside.
Another is that the TMNT are in top physical shape. They're as athletic as Olympians.
Them being "turtles" also helps because turtles are known to have high stamina and endurance, plus, turtles have incredible breath control (there's a reason why turtles can stay under water for many, many minutes).
Way back when Leo had to fight the whole Foot army and Shredder alone, he got quite tired and it's visible too. So, they do get tired and worn down eventually.