The frog is working for Charles Widmore. He tamed it before he was banished and it tries to warn the survivors that Ben, who Widmore hates, is near.