Unlike unidirectional models that only consider preceding words, BERT's Masked Language Model (MLM) allowed it to learn from both left and right contexts simultaneously, providing a "richer understanding of word relationships" crucial for complex NLP tasks.