They choose not to.
It's all about wing loading.
The largest flying bird of all time that we know of was the big one in this picture:
It weighed about the same as an ostrich, but needed a 20ft wingspan to lift that 250-300lb bulk.
Most dinosaurs did not have flight feathers. Many of those that have advanced feathers did would not have had wings large enough to fly.