Because the scripts in the profile = fail and there's nothing programmed to prevent the avatar field from being updated when you update your profile. Since custom avatars are separate than the forum avatar, when you update your profile, the avatar field gets update too because avatars are part of your profile. So whatever default avatars are in the forum, the one selected or default one is chosen when you save your profile.