So Hyoga had some choices, let go of the spear and figure something out/move his foot/step on Senku's hand, or 100% get electrocuted... and he chose the latter... sometimes this series makes no sense but I guess the action isn't the main attraction anyways.