It returned to Heathrow because that was exactly what it was supposed to do (planned LHR-LHR, presumably an engineering flight)
FR24 and other trackers notoriously unreliable when it comes to 'ferry' flight numbers as they will always default to the route flown the last time that flight number was used