That because the USB on those computer doesn't supply enough power to charge the iPad. Your not alone... There a good majority of iPad user who don't have a computer that will charge the iPad. Use the wall charger.
My iPad indicates that it is not charging when I plug it into my MBP, but if I leave it there long enough, it reverts to fully charged. Maybe your iPad is charging but not indicating that it is?