The view page source page shows you the exact text that was returned by the server. Inspect element actually shows you the fully rendered DOM tree.
The DOM tree is slightly different for each browser, depending on the specific quirks and support of features.