If anyone is using dynamic SQL in their application built using functions or stored procedures, I seriously doubt their competency.
Dynamic SQL exists just because it can. It had absolutely no use case outside of I want to slap together some SQL statements real quick and don't feel like using anything except the DB.