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.)