It's illegal to ask but it's not illegal for you to disclose that you are eligible to work so there's nothing wrong with keeping it.
Saying you're eligible to work somewhere is different than disclosing your nationality. One is a material part of the hiring process; the other is something people discriminate on.
Stick to the things that actually affect job performance. It keeps the process fair for everyone.