Some lenses change apparent focal length during focus due to their optical design.
Some lenses change their apparent focal length as you move from infinity to near focus. This phenomenon is called “focus breathing.” In the video above, I demonstrate what this looks like using the Nikon 50mm f/1.8G and Nikon 50mm f/1.8S lenses on a Nikon Z7 mirrorless camera.