Maybe considering David was watching Shaw's dreams, they might have thought it good for Fassbender to witness the filming of it so he has first hand experience with how the dream plays out. Might be better for him rather than just reading it in a script. I'm just guessing though.