By definition, the IP stands for "in play". HR aren't "in play". The designers of BABIP were trying to exclude luck in fielding, I assume, and there is no fielding luck involved in HR. So I don't know that it's flawed by excluding HR. It's just not relevant to "whiff vs. other outs" discussions.