I think there may be related laws regarding "shooting into a dwelling" or "shooting into an inhabited dwelling".
These laws are a reflection of the fact that shooting into a place which might contain people is inherently dangerous to the people inside. It relieves the prosecutor of having to prove the danger directly.
Similarly, there are different degrees of burglary. Burglarizing an inhabited home suggests that the burglar is prepared to harm the inhabitants if detected. The potential punishments are then higher than for simple burglary.
Thank you for that information. I learn so much from my fellow FReepers.