IIFE needs to create a one more scope. If you remove IIFE and $ will no be defined (ie jQuery.noConflict()) - you will get an error. jQuery will defined everywhere the javascript file with library was loaded.
So it's not jQuery best practise, it's a javascript best practise.