There’s nothing non-intentional or implicit about denying the franchise to noncitizens. For the vast majority of countries, that is the way citizenship is expressly designed to work as an in-group. Citizenship is generally meant to discriminate against outsiders.