The Lebanese should then have a good answer to what they expected Israel to do with attacks being launched from Lebanese soil without the Lebanese doing anything about it. I understand, they were in the middle of a civil war, but that doesn't mean Israel has to be OK with attacks happening.
The occupation came as a result of continued attacks. And after Israel left in 2000, more and more attacks happened, culminating in the 2006 war.
The fact remains that if no there were no threats against Israel from Lebanon, there would be nothing for Lebanon to fear from Israel. It's repeatedly sought and made peace with every sovereign country with which is has no ongoing disputes.
(There are, as I understand it, some minor territorial disputes along the border. I'm sure these can be quickly resolved through negotiation, if all parties are serious about it.)