Shouldn’t be anything to worry about. It just means Google is trying to view a page that is returning an error.
It may be a link it’s found while crawling your site or a link to your site from another site or an old link it used to have in its index for your site that no longer exists.
We don’t really have any control over what links Google tries to visit.
Keep an eye on the Google Search Console as it will report back any areas of concern such as old links that no longer work, and where it found them.