Surely Queen Elizabeth II was the queen at the time he was castrated and/or killed himself? She was certainly old enough to know right from wrong, whether or not she was the actual monarch at the time.
She was new to the throne, and as barbaric as it may seem, those were the attitudes and laws of the time (and still are in many countries). Active homosexuality was criminalized, coloured people faced discrimination in many facets of life (sure I'd take 1950s Britain over 1950s Alabama/Mississippi/South Africa any day, but it's all relative), and so on.
Her Majesty today actively intervenes to prevent executions from ever taking place in British dependencies, yet she didn't offer the same hand to those sentenced to die within the UK before 1965. That's just the way it rolled.