"file sharing" vs "File and Printer Sharing for Microsoft Networks"
The "File and Printer Sharing for Microsoft Networks" component is the software that provides the file sharing functionality. However, just because the software is installed doesn't mean that sharing is enabled.
The first dialog box says "To turn off file sharing, Windows Firewall will be enabled" so I conclude that the function of that dialog is to configure the Windows Firewall to either allow or disallow file sharing.
Functionally, this means that file sharing has to be on in both places in order to work.