Why database systems support data manipulation using a declarative query language such as

why database systems support data manipulation using a declarative query language such as sql, instead of just providing a library of c or c functions to carry out data manipulation.