"Zoom lenses (sometimes referred to as "true" zoom) are ideally parfocal in that focus is maintained as the lens is zoomed (focal length and magnification changed), which not only is convenient, but also has the advantage of allowing more accurate focusing at maximum focal length and then zooming back to a shorter focal length to compose the image.[1]
Many zoom lenses, particularly in the case of fixed lens cameras, are actually varifocal lenses, which gives lens designers more flexibility in optical design trade-offs (focal length range, maximum aperture, size, weight, cost) than parfocal zoom, and which is practical because of auto-focus, and because the camera processor can automatically adjust the lens to keep it in focus while changing focal length ("zooming") making operation practically indistinguishable from a parfocal zoom."
Wikpedia