مَا كَانَ الِاخْتِصَاصُ فِيهِ بِحَسَبِ الْإِضَافَةِ إِلَى شَيْءٍ مُعَيَّنٍ
Exclusivity defined in relation to a specified alternative.
مَا عَلِيٌّ إِلَّا قَائِمٌ
Ali is standing, not sitting (in the intended contrast).
If the question is whether Ali stands or sits, the sentence selects standing over sitting. It does not deny that Ali may also be learned, brave, or generous. In relative qasr, the apparent breadth of negation is interpreted against the specific alternative at issue.