You bring up a good point. Actually, Doofenshmirtz’s inators don’t do anything to society. In fact, I think the only time he got arrested was an accident! (He forgot to pay for something at a supermarket and was sent to prison)
ALSO also, wouldn’t Phineas and Ferb also have fines for creating several buildings that are against suburban regulations? It’s even hinted at in one of the episodes!