Focal length and focus are two different concepts. This post is probably WAY more than you bargained for, but understanding the difference holds the answer to your question.
In a simple single-element lens, just a plain piece of glass like a magnifying glass, the focal length is literally the distance at which light through the lens converges to a point. Not an image, but a point. Basically you can measure the focal length by holding the lens over a piece of paper and under a light source. Move the lens up and down until you find where it makes a point instead of spreading the light out on the paper. That distance to the paper is that lens's focal length. A lens element with a short focal length will be closer to the paper, and a long focal length will be further away.
But a naked lens element doesn't serve much purpose in photography. The glass has to be contained in a light-proof barrel, and has to direct the light to a surface, either film or a digital sensor. And a single-element lens is also not much use in photography, as the light through the edges bends differently than the light through the center, and different colors of light bend differently from each other. You can get a picture, but it won't be sharp, and it will have color fringes around the edges.
Multi-element lenses are there simply to correct these flaws that occur with a single element. This piece fixes that issue, and that piece corrects another issue.
Another thing that multiple elements can do is "fake out" the focal length. With a single-element lens, a 400mm lens has to be literally 400 millimeters from the imaging surface. a 10mm single-element lens would have to be only 10mm from that surface. Obviously we don't mount a lens two feet in front of the camera, or actually inside the camera. Some of the glass elements in those lenses serve no purpose other than artificially changing the focal length of the assembly, so that the back of the assembly is about the right distance from the imaging surface to fit in the lens mount of the camera.
This, by the way, is the reason a 50mm lens is so much cheaper than other focal lengths. The back of that lens actually is about 50 millimeters from the imaging surface. No corrective retro-focus or telephoto elements are needed to change the focal length to something shorter or longer than the mounting surface of the camera.
Going back to a single-element lens, a single piece of glass.... If you have a lens with a short focal length close to your imaging surface, the view through that lens covers a wide field. If you have a long focal length lens sitting way out from your imaging surface, the field of view of that lens is much narrower. The image seems magnified. Think of standing near a window looking out, or well away from it. The further you are from it, the narrower your view. Unlike you, though, the lens fills the imaging surface with its view, so it "squeezes" or "magnifies" what it sees (technically not the correct terminology but the concept is clear,) depending on whether it's a short or long focal length. That concept carries over into the multi-element designs. A lens assembly with a short focal length has a wide field of view, for the same reason that a single-element glass does. The focal length is close to the imaging surface, showing a wide field of view.
All of that so far describes focal length, and how it comes to be measured the way it is.
Any lens needs a slight adjustment to make a sharp image of some object or scene, based on how far away that object or scene is from the lens. The "focal length" is not an indicator that something is "in focus." If you're imaging something fairly close to the lens, then the lens needs to fudge a bit out from the imaging surface to make a sharp image. If the subject is well away, the lens need to be fudged back the other way, closer to the imaging surface, to make a sharp image. That is what we call focusing the lens, and the distance from the lens to the subject is the focusing distance. That has nothing to do with the focal length of the lens, which describes the width of the field of view. Any SLR lens, zoom or not, has to be able to be focused, to adjust for the distance to the subject.
Now the fact that you have to move the lens in or out to focus explains the fact that most lenses actually have a very small change in actual focal length depending on the range to the subject. A "50mm" lens that's focused on something close may actually exhibit a precisely measured focal length of 51.8 millimeters and while focused on something very far away actually be at 49.2 millimeters. (These are numbers I pulled out a dark place behind me, by the way. I have no idea what the actual variance might be.)
So: focal length is a measure of the lens's field of view. Focus distance is the very slight adjustment needed to converge the light rays into a sharp image, depending on how far away the subject is.