Phones get hot when they work hard, like a person running up the stairs. When you're watching videos or playing games for a long time, your phone has to do lots of things at once, and that makes it use more power. The battery gets warm, and then the phone starts feeling like a pizza oven.