Why do some movies go straight to DVD?

It costs a lot to advertise and release a film into theaters. If a company doesn't think it will be profitable, it goes direct to DVD.