This is due to the potential for physical injury or discomfort while users are asleep.
Additionally, Apple warns against sleeping or sitting on the charging cable or connector, noting that “sustained contact with warm surfaces for long periods of time may cause discomfort or injury.”

