Given an implementation of circular queues wherein the begin and end are kept as indicies modulo the size of the allocated underlying array, say N, it is necessary that the actual capacity of the queue (not the array) be less than N, elsewise the begin and end indicies will be equal and there would be ambiguity between empty and full.
Thus, when the allocated underlying array is of size N the true capacity of the queue is N-1. That is the why of the test.
There are ways around this that actually allow use of all N slots AND eliminate the division implicit in taking the index modulo n.