More likely they were killed to 1) send a message to Nigerian men and 2) dead women can’t identify their captors and rapists.
Whatever the twisted excuse, the women were a security risk for the Boko Haram bunch. They probably overheard plenty, and once the terrorists realized they may lose possession and control, they killed them.