Depending on what date this was, AC used to fly the route between LHR and YHZ on the 737MAX and the nonstop service has been suspended since those planes were grounded. Instead AC have been routing the traffic through YYZ and YUL, so the BA/WS combo might have had available seats that AC didn't, or more likely cheaper.