What moisture does
Wood absorbs moisture from humid air and expands. A door that fits with a comfortable gap in a dry month can rub the frame in a wet one. The lock is mounted in that door, so as the door shifts, the bolt and latch shift with it.
Signs it is seasonal
The door rubs at the top corner or along the latch edge. Paint is worn in a stripe on the frame. The lock works smoothly with the door open. Problems ease after a few dry days or with the air conditioning running.
When it is the lock too
Humidity can also mean corrosion inside older cylinders, especially near the water. If the key is stiff even with the door open, or the problem continues in dry weather, the lock itself may need attention.
Track the pattern
Keep a simple note of when the lock is difficult: time of year, after rain, morning versus evening. Patterns help separate a door that moves with the weather from a lock that is wearing out. They also make the call shorter, because the history explains much of what we need to know.