This is because the "Edit items" list permission could edit pages in site pages library.
For your requirement, we can go to the site pages library> library settings>Permissions for this document library>Stop Inheriting Permissions from the site and edit users(who have contribute permission level) to Read permission level, in this way, they will not able to edit pages in this library since they only have read permission for them.