HoP 489 All Power to Him: Malebranche and Occasionalism

What led Malebranche to his notorious view that all bodily motions and thoughts are caused by God, with created things serving only as “occasions” for divine action?