Writing music for a picture means you have to compromise with a given reference to a movie or the advice coming from the director and producer. Working on your own material, you have to be just authentic with yourself, following your subjective perspectives and ideas. There is no-one who will judge what you are doing as long as you are in the composing process. Both ways are very different but can support your input learning about the musical universe immensely.