Introduction
A plugin header tells WordPress about your plugin. Activation lets WordPress start your plugin so it works.
When creating a new WordPress plugin to add features to a website.
When you want WordPress to recognize your plugin and show it in the admin area.
When you want to run setup tasks like creating database tables when the plugin starts.
When you want to enable or disable your plugin easily from the WordPress dashboard.