Sometimes engines aren't in their correct positions after attachment, creating torque. Selecting engine in offset mode and resetting it with space resolves this, but sometimes you don't notice and vessel suddenly steers itself.
Engines just placed:
After resetting offset: