when merging data speed data into the ender dragon it does not affect the ender dragons speed.
Steps to reproduce.
Load up a new world with cheats enabled with creative.
run the command /execute in minecraft:the_end run tp @p 0 200 0
observe the ender dragons speed
run /data merge entity @e[type=minecraft:ender_dragon,distance=..100,limit=1] {Attributes:[{Base:5,Name:"generic.movement_speed"}]}
observe the ender dragons speed.
run /summon minecraft:cow
run /data merge entity @e[type=minecraft:cow,distance=..100,limit=1] {Attributes:[{Base:5,Name:"generic.movement_speed"}]}
Observe cows speed when moving.
Related issues
Comments

Duplicate of MC-40949.