Boone was killed so Locke could prove to the Island and the Losties that he was commited to get to the bottom of the island's secrets.
Shannon was killed to cause controversy or stir the pot. To form vendettas (V for vendetta) and harden wounds. She was another sacrifice, both her and Boone had not long term purpose to the Island nor dharma.
__________________
|