By purchasing a fixed number of shares each period, the average price is just the average of the share price since the total cost is consistently share price times number of shares. (number of shares factors out)
By purchasing a fixed dollar amount each period, the average price becomes the 'weighted' average of the cost of the shares. Since you buy more shares when the price is low and fewer shares when the price is high, the weight shifts toward the lower cost.