So why can we say "an American" or "an Italian" but not "a French" or "an English"? Who decided that?
It's arbitrary. You may say "a Brit," usually meaning a person from anywhere on Great Britain, and you may say, "a Scot" to mean someone from Scotland in particular, but other terms for Scottish persons, and almost all terms for Welsh persons, are seen as derogatory by some.
For "a French," you have "a Frog," which is always derogatory. There are similar derogatory terms for persons from other European countries, but as you note, calling someone "an Italian" is in the same class as saying "a Brit" or "an American." "A Yank" is probably somewhere in the middle; whether it's offensive is decided more by the intonation/implication of the speaker than the ear of the recipient.
However, there are no rules. Brits often "go out for a Chinese" or "go out for an Indian" referring to the purported ethnicity of the type of food, and no derogation is implied or inferred. "The Chinese" (reference to a single person, usually with an adjective like "kind" or "gentle" stuck in the middle) was used in the U.S. in a non-derogatory way until this century. It probably wouldn't be taken as offensive today; it's just fallen out of use.
"An Indian" is now "a Native American," even though almost all current residents of the U.S. are native Americans, and the ones we call Native displaced prior natives,
ad nauseam throughout history. Heck, "native" itself has negative connotations, depending on context. "
Autochthon" is still okay, probably because it's used primarily by academics.
For decades, the PC crowd in the U.S. thought that naming sports teams things like "The Blackhawks" or "The Redskins" or "The Chiefs" was offensive, even though no Amerinds (remember that one? It's n-1 for Native American, once PC, now utterly
verboten) agreed with them. Now in some cases the Native Americans have changed their minds, and a term they once proudly supported is considered indecorous at best, deliberately offensive at worst.
There's no making sense of it, no keeping track of it. If someone wants to be offended, he or she will find something you say to support the offense.