Despite the fact that the Prime Minister of Japan is elected by the House of Representatives, the Prime Minister usually would take the responsibilities following the House of Councillors election results, include resignation or cabinet reshuffle.
In the Japanese government's hierarchy, although the Prime Minister is chosen by the lower house (House of Representatives), they usually assume leadership after the upper house (House of Councillors) election results are announced, which may prompt their resignation or a cabinet restructuring.