I agree, but they were out of the parts business well before Arduino and Raspberry Pi were a thing. The last Radio Shack in my area that stocked resistors closed in 2006. There's none near me now, but since ~2000 they'd been mostly phone stores that also carried the occasional batteries and cables.
They had gotten kinda back into the parts business within the last ~5 years or so? At least the ones near me did. They were starting to embrace the maker movement, and was at least dedicating some space to them.