As I wrote in another post, those graduate students were at universities and thus also had teaching duties in addition to their research positions. While the vast majority of those grad students vacated their teaching positions during the strike, many continued with their research. Academic strikes work well at teaching institutions, where the loss of instructor labor is hugely consequential to the university employer (and has no impact on the striking instructors' careers), but not at pure research institutes like the NIH.