Sometimes we need to write plugin, where some hook need to fire before theme hook fired. For this we need to add plugin_loaded hook to plugin file.
Suppose, we are going to customize RSS feed hook. It needs to include theme functions.php file. but I can’t customize theme functions.php file because of premium theme. In that case we need to build plugin with this condition.