There are two clues to them being lathe change-wheels rather than, umm, just gears wot ‘appened to be in the box.
1) The tooth-count stamped or engraved on them.
2) Some means to key them to each other and to the spindle and lead-screw. That could be a keyway as on yours, or a small hole in the face, near the bore, to take a simple pin.
A third clue, but not infallible, is that their counts will increase by a single integer such as 5 per step; though there may be two of certain sizes, or some odd one to allow peculiar prime-number or metric pitches. (BSP thread for example, include 11tpi.)
This does give a further clue to finding if these are even lathe change-wheels anyway. It’s safe to assume if they are, and they are to Imperial dimensions, they were for a lathe made to Imperial dimensions (so British or American make) with a leadscrew 8 or, perhaps, 10tpi.
So see if improper-fractions of 2 of those numbers multiplied by 8 will give common thread pitches. E.g., the 24 and 48T wheels give [48/24] X 8 to produce a 16tpi thread. I tried others and very few gave integer values; but I did not try compound trains.
I wonder if these gears were not screw-cutting change-wheels in the ordinary way, but for something like a speed-change gear-box, gear-hobber or coil-winding machine.
…..
Even if you find orphaned gears whose pitches are the same as your Myford lathe’s change-wheels, I would recommend not using them unless you can be sure their pressure-angles are also the same. Mixing wheels of differing PAs can rapidly damage them because they will not mesh properly.