There are a couple of related misconceptions about lens design, and once you understand them the whole thing about constant vs. variable aperture zooms makes more sense. The first is that the size of the aperture in question is the actual size of the physical aperture in the lens. The related misunderstanding about constant aperture zooms is that they have to change the physical aperture size as they zoom in order to maintain their constant f-number.
Actually, the f-number depends on the size of the "virtual aperture", that is the apparent size of the physical aperture as it's seen through the lens. If the lens has a positive front group*, like most normal and longer lenses, the positive group works as a magnifier, so the virtual aperture is larger than the physical aperture. If the front group is negative, like retrofocus lenses, the negative group makes the virtual aperture smaller than the physical aperture.
When you zoom a zoom lens, it works by changing the magnification of the front group, the rear group, or both. If it changes only the front group, the change in the focal length of the lens is exactly the same as the change in the magnification to the aperture, so the f-number remains constant as you zoom. If you change the magnification of the rear group, the change to the lens as a whole will be smaller than the change to the front group, so the f-number will change as the lens zooms. If you made a lens that worked by changing only the rear group, the change in aperture would be as big as the change in focal length. Some lenses actually do that; AFAIK it's restricted to very long telephoto zooms. In practice, most lenses do the majority of their zooming with the front group.
As I understand it, there are a few constant aperture lenses that do change the physical aperture. The designers wanted to make a constant aperture lens for practical or marketing reasons, but the best optical choice involved a design that had some zooming with the rear group. In that case, it's possible to cheat by mechanically linking the physical aperture to the zoom mechanism, but it's very rare to do so.