By default, new projects have a key signature of C major. When you first add an Apple Loop to a new project, the key signature changes to the key of the loop.
Download the guides:
Logic Pro User Guide: PDF