The Beats brand was a great entrée to an entire market segment that Apple was trying to better access. I'd say it was a masterful acquisition (and integration).
Beats brand basically disappeared after that or at the least has become "uncool".
Apple had iTunes already, they very well could've acqui-hired and improved their service themselves.
Apple music slowly died and is only becoming resurgent now, many years later.