IIRC Pac-Man does save the hi scores...is this a particular version of Pac-Man?
Edit: just checked cheat.dat, and pacman and a bunch of games that run on that board are there, it must be a config issue. If you've upgraded your Mame version, delete the .nv files from 'nvram' as they're often not cross-version compatible.