To expand on Paul's answer.
English uses '-' both as a connector for compound names and as a
subtraction operator. Context usually makes the choice obvious. But
context-free parsers must choose just one, and for computation,
subtraction wins. 'arith-lib' is parsed as (arith) - (lib). Many
algorithm languages use '_' instead of '-' as the compounder for
identifiers (object names).
In addition, Python uses filenames -(minus) '.py' as identifiers for
imported modules. So if the repository allows '-' in package names,
installers must convert '-' to '_'. But if the repository allows
'arith_lib' and 'arith-lib' to be distinct names for different packages,
both would be installed with the same file name. So the repository
standardizes on one form, and it went with English instead of Pythonese.
--
Terry Jan Reedy