it is an outflow most likely because the question labels the dividend payment as reinvested,in that way it acts as an outflow to cancel out the inflow that you are putting on the right side of the equation.
this is needed because the ending value of the investment, which is an inflow, will also include the dividend amount since it it reinvested.. if you didnt count it as an outflow you would double count the dividend