I don't know why it keeps happening, but I think it has something to do with the perk Bonus Move. I can recreate it for the most part, this is how it seems to happen:
1.) Get into a battle.
2.) Shoot enemies 2 times with a .44 Magnum, then reload(Leaves me with 0 AP, but 2 left with to...