This could be due to a variety of reasons, such as a low battery, a dirty charging port, or an issue with the charging cable or adapter. Try cleaning the charging port, using a different charging cable or adapter, or contacting Apple if the issue persists.