It still checks the visibility map; for pages not marked all-visible it fetches the table row (shown as Heap Fetches).
Index Only Scan
A plan node that answers a query from the index alone, without visiting the table.
It still checks the visibility map; for pages not marked all-visible it fetches the table row (shown as Heap Fetches).