It's either because of bad battery or one of your app is causing this. Did you recently install or update an app? If not, check the battery if it needs replacement.