I am not sure what you are really asking here.
There is a lot what you could do with SQL or the semantics that information views provide.
But sometimes writing procedural code is clearer or more efficient or easier or all of the just mentioned things together.
It's another tool in your toolbox.
Sometimes you like to have a chisel even though you could whack a hammer against your screwdriver...
- Lars