when you purchase goods on credit there's no immediate outflow of cash. so you are able to use that cash for business that's why while preparing CFS increase in AP results increase of cash flow. whereas increase in AR results in decrease in CF as there's no immediate inflow if cash