Dum Question About Battery

I keep hearing about charging the battery with an outside device. My question is, doesn’t the ATV charge it’s own battery like a car does? I sometimes (for hours on end) love to listen to my music (IHeartRadio) from my phone. So I plug my phone into my ATV and listen. MMMMMM can I or can I not do this anymore?

Thanks