Shedinja is not the only instance of a Pokemon having EV yields that aren't their highest stat. Slaking's Attack is higher than its HP, like Shedinja. However, Slaking yields HP EVs. There isn't a real reason as to why, but Shedinja is not unique in this case.
Hope I helped!