Default Phone shutting down when unplugged?!

i am hearing this problem often "Phone shutting down when unplugged" is this a known defect in some zls or this problem arises after rooting or unlocking bootloader
If i helped you ,you know where the Thanks button is!