Yes, you can do it, with certain considerations.
It isnt a lighting circuit, it is a circuit, that the lights are fed off.
It will be protected by a 6 amp circuit breaker probably. So you will be limited as to how much current consumption the socket will take. The usual things in an attic are signal boosters and other such small wattage low power consuming devices.
I would have no problem at all in using the ‘lighting’ circuit to supply a dedicated socket for a low power device. If you are worried about someone plugging in a higher powered appliance (not that it would be unsafe, but could be a nuisance by tripping the circuit breaker), then fit a specialist ‘T’ pin plug, or, as mentioned above, one of the small lighting plugs, however, I’m not sure they are fused, but being as the CB is 6 amp, that shouldnt be an issue. either way, mark up the socket as ‘for use of xxx only’.
The 3a 5v 15w refers to the output, 3A x 5V = 15W. It’ll be a tiny wattage at 230v.
All sockets must have RCD protection, so that is another consideration.