I sometimes build picture frames for my wife and found when I buy lumber I need to let it acclimatize to my shop for a while before I cut it. If I cut it right away it will always warp. If I give it a few weeks to hit equalebrium the boards I rip to make the frames stay relatively straight.
I use fir and spruce for the frames but I think any lumber is the same.
Also reaction wood comes into play when dealing with sawn lumber.