When you have electrical outlets in the room, the outlet boxes must be attached to a 2x4 wall stud to match building codes.