Everyone has their own style, and while no one should need to change to suit others, there are situations where you have to defer to some rules. It isn’t because you are being controlled, but more as an empathetic and respectful gesture.
Religion is one of the institutions that can create rules about clothing, and as such, when attending a Christian funeral, there are a few things you need to keep in mind.