That's entirely up to the employer. The law does not require it, but the boss is right that from the employer's point of view, it would be the fastest and most effective way of resolving any future legal difficulties. It's not just this case; they also have to think about precedent for any other situations that may come up in future. It is legal for him to fire you, even if not required.