A mechanism for electrostatic solitary waves observed in the reconnection jet