Although a topcoat sealer is optional, it protects the stained wood from scratches and prevents fading over time.
Depending on the situation, you have to seal the wood after staining because the wood remains a porous surface. When compared to completely unfinished wood, a regular stain can provide some protection. However, it is insufficient.