There's no such thing as an SQL database, per se. SQL is just a language for querying a database (Structured Query Language). Flat text files could easily be the storage mechanism for an SQL database. But I would expect such a system to have binary index files, for efficiency reasons - but even those could be in text format as well, although I see no reason for it, since they could easily be regenerated and would almost never be edited by a human.
Getting back to your questions, Wikis and Blogs, etc. use flat files because they are human-editable, and the reader typically loads the whole thing up (or a range) anyway, eliminating the need for complex indexing. If the site was cross referencing (i.e. if you could make a post that appeared on two blogs, or in two forums, etc.) then an indexable database would be better because the data might not necessarily be stored sequentially in a single file.