Wow. I hope that you have recovered by now. If not, I wish you a quick recovery! What is the expectation related to this resistant strain you got?
I am also wondering one thing after having read the following.
All the above said, I start to wonder why these diseases start to become resistant to these drugs?
As for you, I assumed that the reasons are the same as everywhere (but for diseases/treatments unrelated to malaria and typhoid): people not completing their treatment, or using drugs in a self-medicated way. This has a global impact on the population, and thus even on people like you who follow the rules of common sense. I can easily imagine that in this case, resistant bacteria propagate more freely.