Javascript receives information about the pixel size of your screen but not its physical size.

Your browser was instructed to render the red box as a one inch square. This is often inaccurate, especially in the case of mobile devices and tablets where it would be the most useful to know.

These are the purported physical dimensions of your screen as extrapolated from the red box.