The bug
When you try to get the NBT tags of axolotls with /data command, you can see the "Attributes", but these isn't most attributes, except follow_range and movement_speed, you can only get values of other attributes by running /attribute command.
How to reproduce
Summon a axolotl
Get the attributes info of the axolotl with /data command
/data get entity @e[type=minecraft:axolotl,limit=1,sort=nearest] Attributes
→ ❌ You can only get the values of follow_range and movement_speed.
Get other attributes info of the axolotl with /attribute command.
/attribute @e[type=minecraft:axolotl,limit=1,sort=nearest] minecraft:generic.attack_damage base get
→ ✔ You can get the value of attack_damage of the axolotl, but you need to edit the command to get the values of other attributes.
Linked issues
duplicates
Comments

Thank you for your report!
We're tracking this issue in MC-197818, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automatically! Please report any issues on Discord or Reddit