Pure convention for documentary purposes; the idea being that it serves to identify to site maintainers and developers which files represent actual pages on the site and which contain included code snippets and libraries.
There is a security drawback to using an .inc extension, though.
It's unlikely the web server will have a special rule for dealing with a file ending with ".inc" if the browser requests one, the way it does for HTML, PHP or JPG files. So what the server would do is send the raw contents of the file - instead of executing it as PHP.
So if someone manages to discover (or guesses) that you have a file called, say, "database.inc", and asks for it, the server will serve up the source code. This would probably be a Bad Thing.
To prevent this, either reconfigure the server to interpret ".inc" files as PHP source, or (if you want to retain the documentary aspect), use ".inc.php" instead.