It's not a law for lights to be on and it mainly depends on who owns the aircraft (the operator's rules) and the rules for the airfield/airport your parking on/at...
I believe Mil rules often say that nav lights should be on to show that some form of power is "on".