This happens due to training time. If your pet goes into a class right before your time is up, it still has to finish that class.
Dexter by ❤
in addition to what said, if your pet reaches a new training time tier (which makes training sessions longer), you will still get the same number of the autotraining sessions you paid for, but the later ones will take longer, which can really add up if it's more than one or two.