It's because each NPC class is basically implimented seperately to give them different behavior. Plus, some of the boss behavior is hardcoded into the NPC code, like the evil healer twins for the Rosh battle, or Tavion's Spector attacks.
---Jedi Guardian of the Newbie Questions
---Masters of the Force Team Leader / Creator
---Open Jedi Project Lead Moderator / Co-Founder