Take NYC for example:
To apply for a photo ID card, you must:
Be a citizen or a legal resident of the U.S.
Be a resident of New York State.
Have your original birth certificate.
Have your Social Security card.
Be able to provide enough documents to verify your identity.
https://www.dmv.org/ny-new-york/id-cards.php
That's far from easy, and it's very easy to imagine scenarios where one lacks one or more of those. Proving residency can be hard, and is impossible for those who are homeless. The homeless have a right to vote.