That is so that the function declaration is a function expression, so that it can be executed immediately.
Usually that is done by putting parentheses around it:
(function ($) { "use strict";
//...
}(window.jQuery));
or:
(function ($) { "use strict";
//...
})(window.jQuery);