It’s hard to remember this kanji by its origin because it changed too much.
However, you can remember this kanji by kanji 几.
You can see a desk here. And the desk is made of tree. So there is a 木 on the left.
So 机 means “desk”.
Note: Below is the origin and development of kanji 几.