Why castle
囲い · the king first
In shogi pieces in hand can be dropped anywhere near your king, so an exposed king falls quickly. A castle moves the king away from the side where the fight will start (usually the rook side) and surrounds it with defenders.
The classic recipe is "two golds and a silver" next to the king. Golds defend the squares above and beside the king; the silver closes the diagonal. Here, the Yagura: king 8h, golds 7h and 6g, silver 7g.