It is spring-loaded, and the spring holds the tab against the Ai-coupling ridge on the rear of newer Nikon F-mount lenses. On lenses that have an aperture ring, the position of the tab on the body indicates the f/stop that is set on the lens's aperture control ring, based on its location within the arc of travel.
This system is a mechanical interface that is a holdover from the earlier "buckhorns and pin" system premiered in the mid-1960's on the Nikon F's Photomic series of finders. With the "buckhorn gap" straight up, at 12 noon, the lens was set to f/5.6. When a lens was mounted, it was supposed to be put on at f/5.6, for the easiest drop-in of the pin into the buckhorns, and then the lens was to be MANUALLY, by hand, "racked" to maximum aperture, so the meter would "know" the max aperture of the lens in use. Basically, Nikon uses a simple direction-and-distance reading system that says, "The follower is way off to the side: ergo, the lens is at f 1.4" or "The lens aperture ring is at f/5.6, because the follower is straight up!"
In 1977, Nikon decided to move to Automatic aperture Indexing, or the "Ai" system. The Ai coupling tab is on the bodies; the Ai coupling ridge is on the back of the lens barrels along with a smaller set of f/stop numbers called the secondary aperture scale, which was read out by a nifty prism and lens system, and relayed to the viewfinder.
One reason that some of the newer Nikon camera bodies STILL have the Ai-indexing tab on the bodies is so that users can still set apertures on the lens itself, and still maintain light metering, and this AI coupling tab allows older lenses with no CPU to interface with the light metering system is most newer Nikon bodies(but not all of them). It's a backward compatibility insurance system for Nikon and their users who have legacy lenses.
The "baby Nikons" D40,D40x,D60,D3xxx,and D5xxx series all LACK this AI coupling system, and they also lack the minimum aperture sensing pin, that dealie-bob located at the 7 o'clock position. The LACK of the AI coupling system AND the lack of the minimum aperture sensing pin allow the reallllly old 1959-1977 (approximate end date,since lens model Ai updating did NOT occur in one year for all lens models) Nikkors to be mounted on the baby Nikons without shearing off the min.,ap.sensing pin, or damaging the fixed Ai tab that most other models have.