Necrons are implied to have built The Pharos Device.
Roboute ordered Dantioch to study it and turn it on.
Night Lords took the Device.
Dantioch was captured along with it, and decided that no-one should have that kind of power, and blew it up.
Polux got the Device (kind of) working again.
But, yes. You're right. The Emperor was definitely involved in The Battle of Sotha and Mount Pharos. For realz. And Ultramarines - additionally, The Scythes of the Emperor (Homeworld; Sotha) - definitely weren't the worst hit by the Tyranids for no reason.