It's normal even after preventive medications like frontline sometimes fails since these parasites can have been present before application or the product effects may have slowly weakened as per activity, environmental factors etc. If it occurs frequently, one should ideate on proper usage & regular vet check-ups.