Improving the quality of the data does not necessarily improve the quality of the assembly (i.e the N50). Many other variables affect the genome assembly, such as sequence complexity, repeat content, genome size, sequencing length (short/long reads), etc.
if the trimming made your input data contain less information then your N50 will be shorter.
Not necessarily either, it depends on the assembler and the assembly performance.