Unless you were able to listen to the ATC, it's impossible to know whether this was a well-planned manouvre (as is frequent enough at busy single-runway airports) or a case where the departing aircraft was slower to roll than expected. For a landing aircraft to go around when a departure is already taking off carries its own risks too, of course.