system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5: How are veterans only courts legal?

Recently I became aware that U.S. citizens who were also veterans have access (in some states) to special veterans courts where punishments are more lenient, social services are provided and felonies can be reduced to misdemeanors. I'm certainly not complaining, most of these things have been shown to be more effective and save more money than the current system. What I'm curious about is how they can legal give (or deny depending how you see it) people preferential treatment based on veteran status. Thanks for any explanations! 

*Edit - So I think there is some confusion, I'm not actually looking for why we have them. As I stated, I think they are a great thing and that everyone should have access to such a system. I was more looking for the legal speak on how a court can limit which citizens have access to it.
gpt
Veteran court cases have to be related in some way to the fact that the person is a veteran.  The intent is to focus on cases that the state feels responsible for the actions of the individual so for things like crimes caused by ptsd. 

Edit : the intent is so the state can aid in the reintegration of veterans into civilian life. Sense their crime is determined to be from a failure in the states ability to do that.