They used to do that because DVD sales was the long tail of money that made mid-price movies worthwhile. Even if movies didn't turn a profit during the first run, they did it with DVD sales 6 months later.
Adding commentaries and bonus materials made even more people buy the DVD - even if they already watched the movie in the theatre -> more money.
Adding commentaries and bonus materials made even more people buy the DVD - even if they already watched the movie in the theatre -> more money.