It's simply to improve breathing when piston is in bdc and piston skirt would otherwise hide the straight access of flow to bypass channel(s). And of course, keeping mixture moving through piston improves cooling and lubrication.
When taken a few steps further, piston ports also make the piston lighter. L