My bike after a new spray paint, gets scratched easily
Commercial paint jobs often use heat-baked enamel, with multiple coats (not just undercoat and topcoat), and finished with a clear top coat.

The baking process produces a really tough, well bonded coating, and the clear topcoat (as well as being tough) produces a nice finish that hides scratches.