OctoPrint doesn't do that. OctoPrint doesn't even know if you have a Prusa printer connected or something else and it also doesn't care. It's probably Slic3r PE inserting some custom GCODE that tells the printer to do that (have forgotten the M code they used, but it's in there somewhere).