The cause of the solar wind has been debated for decades but is thought to be rooted in Alfvén waves generated by the ever changing magnetic field of the Sun.
The jets and waves are themselves ultimately created by magnetic reconnection events, rapid events where lines of constant magnetic field suddenly move extremely rapidly, dragging electrons and protons along with them.