If your Ansible inventory fluctuates over time, with hosts spinning up and shutting down, the static inventory becomes useless. You may need to track hosts from multiple sources like cloud providers, LDAP, Cobbler etc. That is when you use Dynamic Inventory file.