Firefox keeps all this information in a single profile folder, to keep your data separate from the Mozilla Firefox program.
You may not have known that the Mozilla Firefox profile stores everything belong to your browser, including settings, bookmarks, extensions, cached files, cookies, and saved passwords.