Without this, you need to select each folder separately to get new emails. This will automatically sync them.
Go to Thunderbird Preferences and search for “Config Editor”. Find the mail.server.default.check_all_folders_for_new
setting and double click it to set it to true.