Welcome to Android Central! Do you mean that after you unplug it, it powers off unexpectedly? After you power back on, is the battery level suddenly low again? I'd suspect a failing battery.
I plug it to the charger and leave it charging still powered on. When I come to get it it has shut down on its own and the charge is at 100%. I am so confused it just started doing this
Not really it drains normal as it always does. Last night I tested by not leaving it plugged to the charger. Just on sleep mode and this morning it had powered off completely.
The battery will normally shut down after a set time you select in settings. It normally turns ON when connected to a charger but will cut off again at the time limit! You can set some devices to stay On while charging and it will remain ON the entire time it is connected to a charger.