The MP says the pressure of politics on family life has driven his surprise decision to quit parliament just months from a state election.