The internal nares are used for the frog's sense of smell. their main purpose however is to take air from the nostril and send it to the mouth which can pull out the oxygen or send it to the lungs.
The nose leads to the pharynx through a pair of apertures known as the internal nares which forms a pathway for the air to reach the lungs for respiration.