LGW - YYZ = £238 inc Tax return total flight time 15h:35m return costing £15.50/Hour
YYZ - JFK = £318 Inc Tax return. total flight time 03h:40m return costing £93.52/Hour
on the LGW-YYZ leg the airline hopes to make the bulk of its revenue and profit on the F/C pax who they (or their companies) are willing to pay extra for that extra bit of comfort. Try look up a a full business class fare and redo your maths. The fare you see is probably for a few seats anyway.
On the YYZ-JFK, most people will fly in the back, so the airline will need to recovery their cost from these unfortunate souls.
Just got to love Airline Economics