If you have the automatic headlamps system, the headlamps will come on automatically when it is dark enough.
Your vehicle may have a light sensor located on top of the instrument panel. Make sure it is not covered, or the headlamps will come on when you do not need them.
The system may also turn on the headlamps when driving through a parking garage or tunnel.