I wouldn't go as far as calling it a "must" but I would say "strongly recommended". Especially because many of the top programs are bigger academic institutions, PDs appreciate interest in research.
And really, there's a HUGE variety of research projects - ranging from big trials to case reports, it shouldn't be too hard to find one - many residents would love to have students help them write something up. 😀