In British English a fruit or fruitcake is someone who is crazy, supposedly in use in both the UK and America from around 1910 from the expression 'nutty as a fruitcake' (with 'nuts' also being another word for crazy).
I imagine fruit loop also derives partly from the word 'loopy' also meaning crazy.
A fruit can also be a disparaging word for a homosexual (especially an effeminate gay person), possibly, some say, because fruit is soft and tender, while others say it is one of many words that used to refer to prostitutes that later became applied to gay men.
It's likely that the crossover between the use of the word for crazy and homosexual is because until just a few decades ago, homosexual people were considered to have a mental problem.
Fruit loops as a cereal has been around in the US since the 1960s, and it is likely the name has been appropriated by the gay community. Fruit loop is some times used in the gay community to refer to the gay bar areas, or as a name for coloured solidarity bracelets. This is something that would probably make Dr Kellog spin in his grave, seeing as he was an advocate of sexual abstinence and invented cornflakes in the hope of preventing masturbation (he even advocated genital mutilation of children, so maybe stop buying Fruit Loops cereal).