That's what the 1" thin wall pieces of pipe are for so a bottle cap will fit.
When the
pump shuts off the water in the garden drains back through the pump. The hose from the pump connects to a tee with a 1/2 inch hose connector.
To prevent a siphon effect.