Try charging it with the wall plug. Generally, the computer will not supply sufficient power to charge the iPad, and if the computer goes to sleep, or anything about it goes to sleep such as ports, screen, other power, it is possible that it did not have the opportunity to charge.