Right side supplies the sound: shī → shī (exact match).
师 is pure phonetic — chosen to transcribe the sound 'shī' from Sanskrit/Iranian word for lion that entered Chinese with Buddhism. The traditional form
獅 used the same phonetic, just unsimplified.