A man has been jailed for raping his two minor daughters over five years, following a police investigation initiated by a hospital visit.