Alabama is a “stop and identify” state. https://en.wikipedia.org/wiki/Stop_and_identify_statutes
It is not a "your papers serf" sort of law. He was not driving a vehicle, he was not breaking any law.