Why is French spoken in Niger?

Because it was a French colony for many years.
Because Niger was once part of a french colony.
When it became a French colony.