Key bugs
It’s common to use strings as keys for map or table data structures. It’s also common for humans to make typos or find it very hard to see the difference between "Boss_0_Attack"
and "Boss_0_Atack"
or "Boss_0_attack"
or "Boss_O_Attack"
100% of the time.
With some map implementations, you won’t get an error about an unknown key, but a new one will be silently created instead. Another fun-to-debug issue is born.
This is why defining string constants for look-up values is important. You can lean on the tooling to make sure you’re using the same exact string. It’s as simple as that.