You can absolutely go to jail for misdemeanors.
Fundamentally, America has given the right - no, demanded - that police do "papers please" stops on people, and given them the right to detain them indefinitely until they produce papers. This is like a mandatory ID card system but without the benefits or coherent organisation.