In LaTeX News, Issues 1–36, it is written:
Auto-detecting key/value arguments To allow extension of the core LATEX syntax,
ltcmdnow supports a=...modifier when grabbing arguments. This modifier instructs LATEX that the argument should be passed to the underlying code as a set of key/values. If the argument does not “look like” a set of key/values, it will be converted into a single key/value pair, with the argument to=specifying the name of that key. For example, the \caption command could be defined as\DeclareDocumentCommand\caption {s ={short-text}+O{#3} +m}{...}
What is the API utility of this kind of feature?

keyvalorl3keysorpgfor whatever to actually process the keys – David Carlisle Mar 19 '23 at 17:35