Things that need to stay very secure, but also quickly detach when needed, are usually attached with explosive bolts. Much simpler and far more reliable than other means.
They protect the antennae during re-entry, otherwise they'd probably melt in the heat. If you read carefully you'll see that it's the antenna covers that explode, not necessarily the antennae themselves.