Matilda was unhappy because she longed for wealth and luxury, despite being born into a modest family. She felt that she deserved a glamorous life, which made her resentful of her simple existence. Her constant dissatisfaction prevented her from appreciating what she had.