Both broccoli and spinach have very strong flavors and colors that could influence the flavor or color of a dish that you would later make with the stock.
Broccoli is a member of the cabbage family; if used in stock, broccoli will impart an unpleasant overcooked cabbage flavor. Greens have similar sulfurous compounds, resulting in similar flavor.