Sometimes when I charge my phone, it drains my battery....

Why is this? Sometimes I go to sleep with my phone half charged, I charge it and then when I wake the battery is almost completely dead. This has happened with a few different chargers and batteries, so it must be the phone...any ideas?