No, it's not intended just to protect other aircraft, it's much more wide ranging than that. The relevant legislation is in the Air Navigation Order 2016:
Endangering safety of an aircraft
240. A person must not recklessly or negligently act in a manner likely to endanger an aircraft,
or any person in an aircraft.
Endangering safety of any person or property
241. A person must not recklessly or negligently cause or permit an aircraft to endanger any
person or property.
Article 240 covers any activity, by any person, which might endanger an aircraft, article 241 applies specifically to us as aircraft operators and stipulates ANY person or property, not just other aircraft.