What means distracting from main game? There are quite a few games, in which the minigames sum up to be a fair competitor to the main game. 😃
Improving replayability of a game can be better than finishing it as soon as possible (whatever finishing means, to begin with)
Sure, there is more than one way to improve replayability, but minigames is a comparatively easy one, and the best is, one doesn't have to finish the game to make it replayable (e.g. by programming different endings, or the like)
(A minigame can be also to have repeating boss fights under different scenarios, by the way)
...Altough I don't know if having cock-swordfights is really feasible without having tealas' physics 🤔