Why did my iphone battery get drained overnight?

Ok so i turned my phone off overnight with 96% battery left and when i woke up and turned it back on it was at 76% battery why did this happen?

Is the iPhone less than a year old? If so it could be a defective battery. As batteries age their ability to hold a charge even while off or on standby degrades.