He probably thought your finger was food. My tree frogs do it all the time. Or, he might have felt slightly threatened and annoyed. Frog's (for the most part) aren't really social creatures, and don't really desire human company or company from other frogs. It's nothing personal at all.