Why are bolts of brake discs using Torx sockets?
The magic of lobes allows Torx to handle a given torque value with a shorter bolt head than the alternatives, and some frame/fork designs need the clearance in this area. That's the only reason for it.

Some secondary bolt retention designs won't work with just any bolts, ie Shimano.