It's because 8-speed Sora was discontinued about 9 years ago and it went to 9-speed.
Shimano 2300 then Claris were the 8-speed replacements. Any 8 speed cassette with a Shimano-type fitting (SRAM, etc) with the same cassette range will work the same way.