Falsely yelling "fire" in a crowded theater is illegal because the First Amendment has exceptions for lying (i.e., asserting an objective falsehood with intent to deceive).
Yelling fire in a crowded theater after lighting a match is not lying. The problem is not lying, it is recklessness. The only problem with lying is that it is also sometimes reckless.