The "racing line" isn't the only line. If it was there would be no overtaking at all.
On the approach to the corner, Hamilton was inside of the racing line, and Albon was on it. That can be seen by the rubber on the tarmac and the driver in front of them. The fact that Albon was very near the outside kerb, demonstrates he left room for Hamilton. Again, comparing with the driver in front of them, Hamilton pulled away from the inside of the corner at an earlier stage. If that driver could stay close to the inside, why couldn't Hamilton? A few laps later a similar situation at the same corner, with Norris and Leclerc. Leclerc on the inside used these things called brakes.