I know that the output load in a digital circuit is a capacitor. But why is that so?

For example, the output load of a simple AND gate is represented by a capacitor.

I think the load should be represented by a resistor.