Salesforce requires 75% code coverage across all your code. When you make a test class, it will be annotated with "@Test" to let the system know not to commit any insert/update/delete functions to the database. If your trigger is being called by a test class annotated with "@Test" then Test.isRunningTest() will return true.
The reason I've seen this in some triggers is because sometimes you don't want to run certain pieces of code when it's coming from a test. i.e. Testing web services and callouts can be hard, so sometimes people just wrap it in an IF() statement to not send the callout of this is coming from a test.
The reason I've seen this in some triggers is because sometimes you don't want to run certain pieces of code when it's coming from a test. i.e. Testing web services and callouts can be hard, so sometimes people just wrap it in an IF() statement to not send the callout of this is coming from a test.