The starbase is only supposed to have unlimited supplies for itself, because you can not return one built in deep space to a resupply depot. If it had limited supplies, it would run out at some point. That would cripple the AIs.

It is not supposed to be able to make an infinite amount of supplies for everything that passes by.