Can anyone kindly explain me why work energy theorem must also include internal forces?

The proof of work energy theorem is derived from Newton's laws of motion, but Newton's laws of motion don't take internal forces into account, so why should internal forces be taken into account in the work energy theorem?