There are already several ways to remove these two fields.
Through individual programming as described here: https://stackoverflow.com/questions/7953160/how-to-remove-email-and-url-fields-in-wordpress-comment-form
Or with plugins such as this one: https://de.wordpress.org/plugins/comment-form-wp/
Some themes also offer options for this.
However, if your question is more of a feature request, then you have posted it in the wrong subforum here. Such a request would be best addressed to the developers in Core Trac. To do so, create a new ticket here and select “Feature Request” under “Type”: https://core.trac.wordpress.org/newticket
Another way which I’ve not seen mentioned much is to simply hide the fields with CSS. Hiding them could be a way to trap spam bots since automated systems typically do not process CSS, so they will place something in the fields whereas real humans with normal browsers will never see the fields and they’ll be left empty.
You must uncheck the “Comment author must fill out name and email” option in discussion settings for this to work properly.
Personally, I’m skeptical that removing these fields would reduce spam. Spammers will simply use whatever fields are available in an attempt to drive traffic to their lousy sites. But it’s your site, do as you wish 🙂