If I'm feeling outgoing I might say a word or two to a random stranger. I like to be personable in that way. But it's a rare thing. Very often it's hard for me to even approach my friends and family, I'm very "speak when I'm spoken to," I know how it feels when somebody's being invasive and I wouldn't want anybody to suffer that from me. I've sometimes had funny looks from strangers when I've talked to them, as if they think I'm a serial killer or something, though what I've said has always been pretty brief and innocuous. And yes, it does sting when they don't like my approach. Seems to be linked to local population density - in some places it seems that anybody will exchange a few words with anybody, other places I'll ask them where the train station is and they'll look kind of threatened. I know I have a bad habit of talking ad nauseam, but I've got it pretty much under control these days, and in the situations I've mentioned, they can't possibly know I can be like that.
Workplaces can be pretty weird. Maybe you've just been doing it too much, but if so then they'd have done better to just suggest you to tone it down a bit. I think some bosses just don't want employees to do anything that's not making them a direct profit. But if folks are too busy, which they usually are in a workplace these days, naturally they won't want to be interrupted. It's useful to try and see whether the target is preoccupied in that way before launching into a conversation. There is some kind of vibe people give off. One guy where I used to work would break eye contact, look miserable, and turn slightly away from me when he'd had enough, which was usually after about half a minute. I think he just had too much to do.