It can be inferred that Mary Warren’s motivation for joining the girls in their accusations is that she is a lonely girl who craves friends and attention.
This interpretation aligns with her character in Arthur Miller's play "The Crucible," where her desire to fit in and be part of the group leads her to participate in the witch trials and make accusations, despite her initial hesitations.