because you can use the same code in different pages, so if you had to make a change to that code, you just change the file thats being included vs changing the same code in every page. You just include once, because other pages included might also include the same file, so if it's already been included, then the rest of the includes are ignored.
//this database.php include is ignored.
echo 'year 2008.';